The invention relates to a
knowledge graph question answering method combining a
large model and a graph neural network, which comprises a question
decomposition module, a sub-question solving module and an answer reasoning module, the method is used for solving the problem that the size of a problem sub-graph is difficult to determine in a multi-hop problem in a graph neural
network method, a sub-problem solving module is composed of a problem sub-graph retrieval stage and a reasoning path construction stage, in the problem sub-graph retrieval stage, a similarity definition mode is given, calculation is carried out through a Personalized
PageRank algorithm, and the problem sub-graph retrieval stage is used for solving the problem sub-graph size. And meanwhile, in order to improve the accuracy of GNN answering, the question sub-graphs of the subsequent questions are combined with the question sub-graphs of the previous questions, so that the dynamic expansion of the question sub-graphs is realized. In the
inference path construction stage, candidate answers are obtained through a pre-trained graph neural network, and then an
inference path is constructed by using a BFS
algorithm. And finally, the reasonability of the reasoning path is judged through an answer reasoning module so as to give sub-question answers. The invention provides a
knowledge graph question and answer framework combining a
large model and a graph neural network, and the performance of the model on a multi-hop problem is effectively improved.