Question answering method and question answering system
AssigneeIndustrial Technology Research Institute
InventorsJia-Jang Tu, Ching-Hsien Lee
Life of this patent
Estimating the term…
Abstract
This disclosure proposes a method and a system for question answering. The method includes: obtaining a question from a user; executing a matching algorithm based on the question to determine whether the question matches one of multiple predefined questions in a frequently asked database; if the question matches a first predefined question, outputting a first predefined answer corresponding to the first predefined question; if the question does not match any predefined question, inputting the question into a language model to generate a response; outputting the generated response; and updating the frequently asked database based on the generated response.
Claims18
A question answering method performed by a computer system, the question answering method comprising:
- getting a first question from a user;
- executing a matching algorithm according to the first question to determine whether the first question matches to one of a plurality of default questions in a frequently asked database;
- when the first question matches to a first default question of the default questions, outputting a first default answer corresponding to the first default question;
- when the first question does not match to the default questions, inputting the first question to a language model to obtain a first generated answer;
- outputting the first generated answer;
- and
- updating the frequently asked database according to the first generated answer, wherein the step of updating the frequently asked database according to the first generated answer comprises:
- (a) inputting the default questions, the first question and a prompt to the language model to obtain a result;
- (b) when the result is no, combining the first question and the first generated answer into a first match to add to the frequently asked database;
- (c) when the result is yes, inputting the first question and the second default question to the language model to determine whether the first question and the second default question belong to a superior relationship;
- (d) when the first question and the second default question do not belong to the superior relationship, updating a match to which the second default question belongs according to the first question;
- (e) when the first question and the second default question belong to the superior relationship, inputting the first question and the second default question to the language model to generate a first new question, inputting the first generated answer and a second default answer corresponding to the second default question to the language model to generate a first new answer;
- (f) determining by the language model whether the first new question and the first new answer pass a verification;
- and
- (g) when the first new question and the first new answer pass the verification, combining the first new question and the first new answer into a second match to add to the frequently asked database, and replacing the second default question and the second default answer with the second match.
(canceled)
5-6. (canceled)
A question answering system, comprising:
- a memory, storing a plurality of instructions;
- and
- a processor, electrically connected to the memory and configured to execute the instructions to perform a plurality of steps:
- getting a first question from a user;
- according to the first question, executing a matching algorithm to determine whether the first question matches to one of a plurality of default questions in a frequently asked database;
- when the first question matches to a first default question of the default questions, outputting a first default answer corresponding to the first default question;
- when the first question does not match to the default questions, inputting the first question to a language model to obtain a first generated answer;
- outputting the first generated answer;
- and
- updating the frequently asked database according to the first generated answer, wherein the step of updating the frequently asked database according to the first generated answer comprises:
- (a) inputting the default questions, the first question and a prompt to the language model to obtain a result;
- (b) when the result is no, combining the first question and the first generated answer into a first match to add to the frequently asked database;
- (c) when the result is yes, inputting the first question and the second default question to the language model to determine whether the first question and the second default question belong to a superior relationship;
- (d) when the first question and the second default question do not belong to the superior relationship, updating a match to which the second default question belongs according to the first question;
- (e) when the first question and the second default question belong to the superior relationship, inputting the first question and the second default question to the language model to generate a first new question, inputting the first generated answer and a second default answer corresponding to the second default question to the language model to generate a first new answer;
- (f) determining by the language model whether the first new question and the first new answer pass a verification;
- and
- (g) when the first new question and the first new answer pass the verification, combining the first new question and the first new answer into a second match to add to the frequently asked database, and replacing the second default question and the second default answer with the second match.
(canceled)
15-16. (canceled)
Dependencies are inferred from the claim text.