# US 2026/0087055 A1 · Question answering method based on large model, electronic device, and storage medium

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

- Number: US 2026/0087055 A1
- Document ID: US20260087055A1
- Status: Published application
- Kind: A1
- Application number: 18/979,343
- Filed: 2024-12-12
- Published: 2026-03-26
- Earliest claimed: 2024-09-23
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd.
- Inventors: Bolei He
- Web page: https://patentgrep.com/patent/US20260087055A1

## CPC

- G06F 16/338: Presentation of query results
- G06F 16/3329: Natural language query formulation
- G06F 16/3344: {using natural language analysis}
- G06F 16/383: using metadata automatically derived from the content
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A question answering method based on a large model is performed by an electronic device. The method includes: determining a first result corresponding to a query statement based on a first large model, in which the first result includes a first response corresponding to the query statement, a first response logic corresponding to the first response, and first context knowledge corresponding to the first response; determining a retrieval result corresponding to the query statement by retrieving in a database based on the query statement; determining a type of a knowledge conflict between the first result and the retrieval result; and determining a target response corresponding to the query statement based on the first result, the retrieval result, and the type of the knowledge conflict.

## Claims

### Claim 1

A question answering method based on a large model, performed by an electronic device, the method comprising:
determining a first result corresponding to a query statement based on a first large model, wherein the first result comprises a first response corresponding to the query statement, a first response logic corresponding to the first response, and first context knowledge corresponding to the first response;
determining a retrieval result corresponding to the query statement by retrieving in a database based on the query statement;
determining a type of a knowledge conflict between the first result and the retrieval result; and
determining a target response corresponding to the query statement based on the first result, the retrieval result, and the type of the knowledge conflict.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the type of the knowledge conflict comprises at least one of a fact error or a semantic error.

### Claim 3 (depends on 2)

The method according to claim 2, wherein determining the type of the knowledge conflict between the first result and the retrieval result, comprises:
obtaining a definition and a reference example corresponding to the fact error, and a definition and a reference example corresponding to the semantic error; and
determining the type of the knowledge conflict by inputting the first result, the retrieval result, the definition and the reference example corresponding to the fact error, and the definition and the reference example corresponding to the semantic error into a second large model.

### Claim 4 (depends on 1)

The method according to claim 1, wherein determining the target response corresponding to the query statement, comprises:
determining a first weight corresponding to the first result and a second weight corresponding to the retrieval result; and
in response to the type of the knowledge conflict being a semantic error, determining the target response by inputting the first result, the retrieval result, the type of the knowledge conflict, the definition and the reference example corresponding to the semantic error, the first weight corresponding to the first result, and the second weight corresponding to the retrieval result into a third large model.

### Claim 5 (depends on 4)

The method according to claim 4, wherein determining the first weight corresponding to the first result and the second weight corresponding to the retrieval result, comprises:
determining the first weight corresponding to the first result based on a parameter amount corresponding to the first large model, wherein the parameter amount is proportional to the first weight; and
determining the second weight based on the first weight.

### Claim 6 (depends on 1)

The method according to claim 1, wherein determining the target response corresponding to the query statement, comprises:
in response to the type of the knowledge conflict being a semantic error, determining the target response by inputting the first result, the retrieval result, the type of the knowledge conflict, and the definition and the reference example corresponding to the semantic error into a third large model.

### Claim 7 (depends on 1)

The method according to claim 1, wherein determining the first result corresponding to the query statement based on the first large model, comprises:
obtaining a preset number of output results by inputting the query statement into the first large model for a preset number of times, wherein each of the output results comprises a second response corresponding to the query statement, a second response logic corresponding to the second response, and second context knowledge corresponding to the second response;
determining the first response by processing a preset number of second responses;
determining the first response logic by processing a preset number of second response logics; and
determining the first context knowledge by processing a preset number of pieces of second context knowledge.

### Claim 8 (depends on 7)

The method according to claim 7, wherein after obtaining the preset number of output results by inputting the query statement into the first large model for the preset number of times, the method further comprises:
determining the first response corresponding to the query statement, the first response logic, and the first context knowledge by inputting the preset number of second responses, the preset number of second response logics and the preset number of pieces of second context knowledge into a fourth large model.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the output result comprises a confidence level corresponding to the second response, and determining the target response corresponding to the query statement, comprises:
determining a first weight corresponding to the first result based on a preset number of confidence levels;
obtaining a second weight corresponding to the retrieval result; and
in response to the type of the knowledge conflict being a semantic error, determining the target response by inputting the retrieval result, the first result, the type of the knowledge conflict, the definition and the reference example corresponding to the semantic error, the first weight corresponding to the first result, and the second weight corresponding to the retrieval result into a third large model.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
in response to the type of the knowledge conflict being a fact error, determining a third result corresponding to the query statement based on the first large model again;
determining a new retrieval result corresponding to the query statement by retrieving in a database based on the query statement again; and
determining a type of a knowledge conflict between the third result and the new retrieval result until the type of the knowledge conflict between the third result and the new retrieval result is no longer the fact error.

### Claim 11

An electronic device, comprising a processor; and a memory communicatively coupled to the processor and storing instructions executable by the processor, wherein the processor is configured to:
determine a first result corresponding to a query statement based on a first large model, wherein the first result comprises a first response corresponding to the query statement, a first response logic corresponding to the first response, and first context knowledge corresponding to the first response;
determine a retrieval result corresponding to the query statement by retrieving in a database based on the query statement;
determine a type of a knowledge conflict between the first result and the retrieval result; and
determine a target response corresponding to the query statement based on the first result, the retrieval result, and the type of the knowledge conflict.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the type of the knowledge conflict comprises at least one of a fact error or a semantic error.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the processor is further configured to:
obtain a definition and a reference example corresponding to the fact error, and a definition and a reference example corresponding to the semantic error; and
determine the type of the knowledge conflict by inputting the first result, the retrieval result, the definition and the reference example corresponding to the fact error, and the definition and the reference example corresponding to the semantic error into a second large model.

### Claim 14 (depends on 11)

The electronic device according to claim 11, wherein the processor is further configured to perform one of:
determining a first weight corresponding to the first result and a second weight corresponding to the retrieval result; and
in response to the type of the knowledge conflict being a semantic error, determining the target response by inputting the first result, the retrieval result, the type of the knowledge conflict, the definition and the reference example corresponding to the semantic error, the first weight corresponding to the first result, and the second weight corresponding to the retrieval result into a third large model; or
in response to the type of the knowledge conflict being a semantic error, determining the target response by inputting the first result, the retrieval result, the type of the knowledge conflict, and the definition and the reference example corresponding to the semantic error into a third large model.

### Claim 15 (depends on 14)

The electronic device according to claim 14, wherein the processor is further configured to:
determine the first weight corresponding to the first result based on a parameter amount corresponding to the first large model, wherein the parameter amount is proportional to the first weight; and
determine the second weight based on the first weight.

### Claim 16 (depends on 11)

The electronic device according to claim 11, wherein the processor is further configured to:
obtain a preset number of output results by inputting the query statement into the first large model for a preset number of times, wherein each of the output results comprises a second response corresponding to the query statement, a second response logic corresponding to the second response, and second context knowledge corresponding to the second response;
determine the first response by processing a preset number of second responses;
determine the first response logic by processing a preset number of second response logics; and
determine the first context knowledge by processing a preset number of pieces of second context knowledge.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the processor is further configured to:
determine the first response corresponding to the query statement, the first response logic, and the first context knowledge by inputting the preset number of second responses, the preset number of second response logics and the preset number of pieces of second context knowledge into a fourth large model.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the processor is further configured to:
determine a first weight corresponding to the first result based on a preset number of confidence levels;
obtain a second weight corresponding to the retrieval result; and
in response to the type of the knowledge conflict being a semantic error, determine the target response by inputting the retrieval result, the first result, the type of the knowledge conflict, the definition and the reference example corresponding to the semantic error, the first weight corresponding to the first result, and the second weight corresponding to the retrieval result into a third large model.

### Claim 19 (depends on 11)

The electronic device according to claim 11, wherein the processor is further configured to: in response to the type of the knowledge conflict being a fact error, determine a third result corresponding to the query statement based on the first large model again;
determine a new retrieval result corresponding to the query statement by retrieving in a database based on the query statement again; and
determine a type of a knowledge conflict between the third result and the new retrieval result until the type of the knowledge conflict between the third result and the new retrieval result is no longer the fact error.

### Claim 20

A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are caused to enable a computer to perform a question answering method based on a large model, the method comprising:
determining a first result corresponding to a query statement based on a first large model, wherein the first result comprises a first response corresponding to the query statement, a first response logic corresponding to the first response, and first context knowledge corresponding to the first response;
determining a retrieval result corresponding to the query statement by retrieving in a database based on the query statement;
determining a type of a knowledge conflict between the first result and the retrieval result; and
determining a target response corresponding to the query statement based on the first result, the retrieval result, and the type of the knowledge conflict.
