Graph and vector usage for automated QA system
Abstract
A method for conversational query resolution includes receiving a query input from a user. The query input is decomposed into a plurality of tasks. A knowledge graph is queried to identify one or more relevant entities based on at least one of the plurality of tasks. A vector database is searched to identify one or more text chunks that correspond to the one or more relevant entities. Content relevant to at least one of the plurality of tasks is identified from the one or more text chunks. An answer is generated based on the identified content.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving a query input from a user; decomposing the query input into a plurality of tasks; querying a knowledge graph to identify one or more relevant entities based on at least one of the plurality of tasks, wherein each of the one or more entities comprises text information related to a respective portion of a document; searching a vector database to identify one or more text chunks, wherein each of the one or more text chunks comprises contextual information in natural language for a respective identified relevant entity and is linked to the respective identified relevant entity in the knowledge graph using a chunk identifier; identifying content relevant to at least one of the plurality of tasks by parsing the contextual information in natural language within the one or more text chunks; and generating an answer for the query based on the identified content.
- Claim 2Depends on #1
The computer-implemented method of claim 1, wherein each of the one or more text chunks comprises text extracted from a corpus of unstructured documents.
- Claim 3Depends on #1
The computer-implemented method of claim 1, wherein each respective text chunk is vectorized into a respective vector representation using an embedding model.
- Claim 4Depends on #1
The computer-implemented method of claim 1, wherein the content relevant to the plurality of tasks from the one or more text chunks is identified using a vector-based similarity technique.
- Claim 5Depends on #4
The computer-implemented method of claim 4, wherein the vector-based similarity technique used to identify the content comprises comparing at least one of (i) cosine similarity or (ii) distance similarity between vector representations of the one or more text chunks and each of the plurality of tasks.
- Claim 6Depends on #1
The computer-implemented method of claim 1, further comprising: receiving feedback from the user regarding an accuracy of the answer; and updating the knowledge graph based on the feedback.
- Claim 7Depends on #6
The computer-implemented method of claim 6, wherein updating the knowledge graph and the vector database based on the feedback comprises adding one or more new entities to the knowledge graph, wherein each of the one or more new entities comprises data derived from the answer.
- Claim 8Depends on #1
The computer-implemented method of claim 1, wherein generating the answer based on the identified content comprises: aggregating the identified content based on logical relationships between each of the plurality of tasks; and generating the answer in natural language based on the aggregated content using natural language processing algorithms.
Technical Overview & Description
BACKGROUND The present disclosure relates to artificial intelligence question-answering systems, and more specifically, using such artificial intelligence question-answering systems to generate natural language responses to queries. SUMMARY One embodiment of the present disclosure provides a computer-implemented method that includes receiving a query input from a user. The query input is decomposed into a plurality of tasks. A knowledge graph is queried to identify one or more relevant entities based on at least one of the plurality of tasks. A vector database is searched to identify one or more text chunks that correspond to the one or more relevant entities. Content relevant to at least one of the plurality of tasks from the one or more text chunks is identified. An answer based on the identified content is generated. Other embodiments in this disclosure provide non-transitory computer-readable mediums containing computer program code that, when executed by operation of one or more computer processors, performs operations in accordance with one or more of the above methods described above, as well as systems comprising one or more computer processors and one or more memories containing one or more programs that, when executed by the one or more computer processors, perform an operation in accordance with one or more of the above methods described above. BRIEF DESCRIPTION OF THE DRAWINGS So that the manner in which the above-recited features of the present disclosure can be understood in detail, a more particular description of the disclosure, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the appended drawings illustrate typical embodiments and are therefore not to be considered limiting; other equally effective embodiments are contemplated. FIG. 1 depicts an example computing environment for the execution of at least some of the computer code involved in pe
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (17)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Sang-Hyuk Lee et al.,
- “
- A Question-Answering Model Based on Knowledge Graphs for the General Provisions of Equipment Purchase Orders for Steel Plants Maintenance,
- ”
- Electronics 2023, Date: Jun. 1, 2023, pp. 1-36.
- Shulin Hu et al.,
- “
- Domain Knowledge Graph Question Answering Based on Semantic Analysis and Data Augmentation,
- ”
- Applied Sciences, 2023, Dated: Jul. 31, 2023, pp. 1-23.