The invention provides a large
language model heterogeneous knowledge reasoning method and device based on an atomic knowledge operator, and the method comprises the steps: building an atomic reasoning
tree based on an original to-be-answered question; wherein the atomic
inference tree comprises father nodes and leaf nodes, root nodes in the father nodes are original to-be-answered questions, non-root nodes in the father nodes are different levels of sub-questions obtained by decomposing the original to-be-answered questions, the leaf nodes are atomic questions obtained by decomposing the original to-be-answered questions, and each leaf node corresponds to an atomic knowledge operator; the atomic knowledge operator comprises a search operator, a relation operator and a filtering operator; for leaf nodes, reasoning atomic problems according to retrieval-knowledge on the basis of a large
language model and an atomic knowledge operator; for a father node, based on a large
language model, according to child node reasoning answers, brother node reasoning answers or retrieval-knowledge, reasoning child questions; reasoning the atomic reasoning tree from a leaf node to a root node from bottom to top to obtain a reasoning result of the original to-be-answered question; wherein the retrieval-knowledge is obtained by executing dynamic
knowledge retrieval from various heterogeneous
knowledge sources. According to the method, an original to-be-answered question is decomposed into atomic-level fine
granularity, a leaf node in an atomic reasoning tree corresponds to an atomic knowledge operator, a more accurate reasoning result is achieved, meanwhile, knowledge is allowed to be dynamically retrieved from various heterogeneous
knowledge sources at each sub-question and atomic question node, and the reasoning efficiency is improved. Different types of queries can be flexibly coped with, richer, more accurate and more complementary information is provided, and the overall reasoning ability of the
algorithm is enhanced.