The invention discloses an industrial
knowledge graph completion and adaptive retrieval method based on a large
language model, and belongs to the technical field of computers, an incomplete
knowledge graph is divided into a plurality of sub-graphs, and the
knowledge graph is completed through
negative sample filtering, neighborhood information
pruning, information merging, question and answer template mapping, knowledge graph completion
large model construction and LoRA
fine tuning. The self-adaptive retrieval query module is used for receiving user problems, task
decomposition, entity exploration, relation exploration, updating sub-graphs, reasoning paths and sub-target states in the memory sub-module, evaluating the performance and outputting a query result, and in the reflection and self-correction process, when information is insufficient, the self-adaptive retrieval query module is used for performing self-adaptive retrieval query. And the LLM evaluates whether the exploration direction needs to be adjusted or the reasoning path needs to be corrected based on the current information, and finally outputs an answer meeting the user demand according to the retrieved information. According to the method, the capability of a large
language model is effectively combined, and the efficiency and the accuracy of knowledge graph completion are improved through adaptive retrieval and an reflection mechanism.