The invention discloses a
large model reasoning method and
system based on
tree diagram and
knowledge graph retrieval enhancement, and the method comprises the steps: segmenting a document into text blocks, recognizing the entities, relationships and factual descriptions of the text blocks, and forming a
knowledge graph of the text blocks; constructing a factual summary of the documents based on the
knowledge graph of the text blocks, and performing clustering
recursion on all the documents by using a
Gaussian mixture model to generate a similarity
tree structure graph; the method comprises the following steps: obtaining a user problem, selecting a reasoning path from a similarity
tree structure diagram through a large
language model debate iteration method, obtaining a corresponding document cluster,
pruning the
cluster based on the user problem and a
confidence score of a document, selecting a plurality of text blocks from the pruned document, and finally obtaining a knowledge
graph based on the selected text blocks. And generating a reasoning result. The invention relates to the technical field of
natural language processing, can realize retrieval enhancement based on a
tree diagram and a knowledge graph, and accurately queries related information when a
large model answers a complex multi-hop question, so that the reasoning accuracy is effectively ensured.