Systems and methods for a dual-layer knowledge graph framework of retrieval augmented generation
Патент · US A1
Полный текст
Embodiments described herein provide a method of an artificial intelligence (AI) agent generating a response to a natural language query using a dual-layer knowledge graph. The method includes constructing a first knowledge graph by extracting a plurality of entities, propositions and/or relationships from at least one document. The method also includes constructing a second knowledge graph based on the at least one document, the first node and the second node from the first knowledge graph, and a pre-defined ontology structure, wherein the second knowledge graph comprises nodes and edges according to the pre-defined ontology structure. In response to the natural language query, a subset of propositions is retrieved from both the first knowledge graph and the second knowledge graph. A response is generated based on the query and context information corresponding to the subset of propositions, and the response is displayed at a visualized user interface of the AI agent.