The invention discloses a
knowledge question and answer
processing method fusing a
large model and a
knowledge graph, and relates to the technical field of
artificial intelligence and
natural language processing. Aiming at the defects of a traditional retrieval enhancement generation technology in the aspects of complex
semantic association, context consistency and dynamic
knowledge updating, the scheme adopted by the invention comprises the following two stages:
knowledge graph construction and mixed index generation: collecting and
processing internal and external multi-
source data of an enterprise, and performing cleaning preprocessing such as coding normalization and de-duplication to obtain a mixed index; entities and relations are extracted through a pre-training model to generate a triple, a
knowledge graph is constructed and stored in Neo4j, then a mixed index is generated through text and
graph embedding fusion, and two types of retrieval are supported; retrieval and answer generation: obtaining user query, preprocessing, vectorizing, obtaining a candidate
list through low-level semantic retrieval and high-level reasoning retrieval, fusing multi-dimensional indexes, rearranging and screening top-M candidates through Cross-
encoder, constructing a
JSON evidence
list, and generating traceable answers through small model draft,
large model fine calibration and consistency
verification.