Method and apparatus for question-answering using a database consist of query vectors
Assignee42Maru Inc.
InventorsDong Hwan Kim, Ki Bong Sung, You Kyung Kwon, SeongYeop Jeong
Life of this patent
Estimating the term…
Abstract
Disclosed herein is a search method performed by an electronic device, including: receiving the plurality of similar question candidates selected by the server using a first similarity analysis model and question vectors corresponding to the plurality of similar question candidates from the server; selecting one or more similar questions from the plurality of similar question candidates by the electronic device using a second similarity analysis model; receiving the responses to the one or more similar questions from the server; and providing the one or more similar questions and the responses to the similar question together to the user.
Claims12
A search method performed by an electronic device, the search method comprising:
- acquiring a user question from a user;
- when an answer to the user question is not stored in a database of the electronic device, generating a user question vector for the user question;
- transmitting the user question vector to a server, wherein a database of the server stores one or more question-answer-question vector including a question, a response to the question and a question vector for the question;
- when a plurality of similar question candidates are selected by the server using a first similarity analysis model for determining first similarities between question vectors stored in the server and the user question vector, receiving the plurality of similar question candidates and question vectors corresponding to the plurality of similar question candidates together with first similarities associated with the question vectors corresponding to the plurality of similar question candidates or a similarity ranking of the plurality of similar question candidates from the server;
- selecting one or more similar questions from the plurality of similar question candidates by the electronic device using a second similarity analysis model for determining second similarities between the received question vectors and the user question vector;
- requesting responses to the one or more similar questions from the server;
- receiving the responses to the one or more similar questions from the server;
- and
- providing the one or more similar questions and the responses to the similar question together to the user,
- wherein
- the first similarity analysis model and the second similarity analysis model have different configurations of neural network models or different values of variables included in hidden layers, and
- one of the first similarity analysis model and the second similarity analysis model determines a similarity to the user question vector based on a distance from the user question vector in a Euclidean space, and
- wherein the first similarity analysis model and the second similarity analysis model are different analysis models.
An electronic device comprising:
- a processor;
- and
- a non-transitory memory configured to store instructions executed by the processor,
- wherein the processor executes the instructions to:
- acquire a user question from a user;
- when an answer to the user question is not stored in a database of the electronic device, generate a user question vector for the user question;
- transmit the user question vector to a server, wherein a database of the server stores one or more question-answer-question vector including a question, a response to the question and a question vector for the question;
- when a plurality of similar question candidates are selected by the server using a first similarity analysis model for determining first similarities between question vectors stored in the server and the user question vector, receive the plurality of similar question candidates and question vectors corresponding to the plurality of similar question candidates together with first similarities associated with the question vectors corresponding to the plurality of similar question candidates or a similarity ranking of the plurality of similar question candidates from the server;
- select one or more similar questions from the plurality of similar question candidates by the electronic device using a second similarity analysis model for determining second similarities between the received question vectors and the user question vector;
- request responses to the one or more similar questions from the server;
- receive the one or more response to the similar questions from the server;
- and
- provide the one or more similar question and the response to the similar question together to the user,
- wherein
- the first similarity analysis model and the second similarity analysis model have different configurations of neural network models or different values of variables included in hidden layers, and
- one of the first similarity analysis model and the second similarity analysis model determines a similarity to the user question vector based on a distance from the user question vector in a Euclidean space, and
- wherein the first similarity analysis model and the second similarity analysis model are different analysis models.
A computer-readable recording non-transitory medium in which a computer program executed by an electronic device is recorded, the computer program comprising:
- acquiring a user question from a user;
- when an answer to the user question is not stored in a database of the electronic device, generate a user question vector for the user question;
- transmitting the user question vector to a server, wherein a database of the server stores one or more question-answer-question vector including a question, a response to the question and a question vector for the question;
- when a plurality of similar question candidates are selected by the server using a first similarity analysis model for determining first similarities between question vectors stored in the server and the user question vector, receiving the plurality of similar question candidates and question vectors corresponding to the plurality of similar question candidates together with first similarities associated with the question vectors corresponding to the plurality of similar question candidates or a similarity ranking of the plurality of similar question candidates from the server;
- selecting one or more similar questions from the plurality of similar question candidates by the electronic device using a second similarity analysis model for determining second similarities between the received question vectors and the user question vector;
- requesting responses to the one or more similar question from the server;
- receiving the one or more response to the similar question from the server;
- and
- providing the one or more similar question and the response to the similar question together to the user,
- wherein
- the first similarity analysis model and the second similarity analysis model have different configurations of neural network models or different values of variables included in hidden layers, and
- one of the first similarity analysis model and the second similarity analysis model determines a similarity to the user question vector based on a distance from the user question vector in a Euclidean space, and
- wherein the first similarity analysis model and the second similarity analysis model are different analysis models.
Dependencies are inferred from the claim text.