# US 2023/0273944 A1 · Natural language response generation to knowledge queries

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0273944 A1
- Document ID: US20230273944A1
- Status: Published application
- Kind: A1
- Application number: 18/114,623
- Filed: 2023-02-27
- Published: 2023-08-31
- Earliest claimed: 2022-02-28
- Assignees: Cognius Ai Pte Ltd
- Applicants: Cognius Ai Pte Ltd
- Inventors: Mundigala Arachchillage Isuru Suharshan Rajakaruna
- Web page: https://patentgrep.com/patent/US20230273944A1

## CPC

- G06F 16/3329: Natural language query formulation
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F 16/3334: {Selection or weighting of terms from queries, including natural language queries}
- G06F 16/3344: {using natural language analysis}
- G06F 16/338: Presentation of query results
- G06N 3/042: Knowledge-based neural networks; Logical representations of neural networks
- G06N 3/0475: Generative networks
- G06N 20/00: Machine learning
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Improved methods and systems for generating natural language responses to knowledge queries are provided. In one aspect, a method is provided that includes a conversational query with questions phrased in natural language. Corresponding knowledge data may be identified that relates to the conversational query, and an inference query may be generated based on the conversational query and the knowledge data. Reduced inference query may be generated that removes at least a portion of the knowledge data from the conversational query. A natural language response may be generated based on the reduced inference query, and may be presented to a user. In certain instances, a first model may be used to generate the inference query, a second model to be used to generate the reduced inference query, and a third model may be used to generate the natural language response.

## Claims

### Claim 1

A method comprising:
receiving a conversational query that includes a questions phrased in natural language;
identifying corresponding knowledge data related to the conversational query;
generating an inference query based on the conversational query and the knowledge base using a first model, wherein the inference query includes at least a subset of the knowledge data;
generating, with a second model, a reduced inference query that removes at least a portion of the subset of the knowledge data;
generating a natural language response using a third model based on the reduced inference query and the subset of the knowledge data; and
presenting the natural language response to a user.

### Claim 2 (depends on 1)

The method of claim 1, wherein the inference query provides a logical representation of the conversational query and associated data from the knowledge data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the inference query includes context information, at least one decision operation, and at least one argument.

### Claim 4 (depends on 2)

The method of claim 2, wherein the context information is predicted based on the conversational query, the decision operation is predicted based on the conversational query, and the argument array is predicted based on the knowledge data.

### Claim 5 (depends on 1)

The method of claim 1, wherein preparing the reduced inference query includes:
identifying one or more invalid data entries within subset of the knowledge data; and
removing the one or more invalid data entries from the inference query to generate the reduced inference query.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first model is a semantic parser model, the second model is a post processing model, and/or the third model is a decoder model.

### Claim 7 (depends on 6)

The method of claim 6, wherein the semantic parser model and the post processing model are implemented by transformer models and the third model is implemented as a generative pre-trained model.

### Claim 8 (depends on 1)

The method of claim 1, wherein the corresponding knowledge data is identified from within a preexisting database of knowledge data.

### Claim 9 (depends on 1)

The method of claim 1, wherein the corresponding knowledge data is identified based on one or more keywords within the conversational query.

### Claim 10 (depends on 1)

The method of claim 1, wherein the corresponding knowledge data is received with the conversational query.

### Claim 11

A system comprising:
a processor; and
a memory storing instructions which, when executed by the processor, cause the processor to:
receive a conversational query that includes a questions phrased in natural language;
identify corresponding knowledge data related to the conversational query;
generate an inference query based on the conversational query and the knowledge base using a first model, wherein the inference query includes at least a subset of the knowledge data;
generate, with a second model, a reduced inference query that removes at least a portion of the subset of the knowledge data;
generate a natural language response using a third model based on the reduced inference query and the subset of the knowledge data; and
present the natural language response to a user.

### Claim 12 (depends on 11)

The system of claim 11, wherein the inference query provides a logical representation of the conversational query and associated data from the knowledge data.

### Claim 13 (depends on 11)

The system of claim 11, wherein the inference query includes context information, at least one decision operation, and at least one argument.

### Claim 14 (depends on 12)

The system of claim 12, wherein the context information is derived from the conversational query, the decision operation is predicted based on the conversational query, and the argument array is predicted based on the knowledge data.

### Claim 15 (depends on 11)

The system of claim 11, wherein the instructions further cause the processor, while preparing the reduced inference query, to:
identify one or more invalid data entries within subset of the knowledge data; and
remove the one or more invalid data entries from the inference query to generate the reduced inference query.

### Claim 16 (depends on 11)

The system of claim 11, wherein the first model is a semantic parser model, the second model is a post processing model, and/or the third model is a decoder model.

### Claim 17 (depends on 16)

The system of claim 16, wherein the semantic parser model and the post processing model are implemented by transformer models and the third model is implemented as a generative pre-trained model.

### Claim 18 (depends on 11)

The system of claim 11, wherein the corresponding knowledge data is identified from within a preexisting database of knowledge data.

### Claim 19 (depends on 11)

The system of claim 11, wherein the corresponding knowledge data is identified based on one or more keywords within the conversational query.

### Claim 20 (depends on 11)

The system of claim 11, wherein the corresponding knowledge data is received with the conversational query.
