The invention discloses a multi-mode fusion product document and
source code association retrieval method based on a
knowledge graph, and relates to the technical field of
software engineering and
artificial intelligence. The method comprises the steps that source codes are preprocessed, and code structure information and business
semantics are mapped in combination with a predefined business term dictionary; performing controlled induction on a code file and a product document by utilizing a
large model, extracting business terms, logic intentions and a subject relationship, fusing with original codes, and establishing a vector retrieval
index system; further analyzing a code structure by using an
abstract syntax tree, and extracting an entity and a calling relationship;
semantic enhancement and relation normalization are performed in combination with the
large model, entities and relations are stored in a
graph database, and a
knowledge graph is formed; and performing
parallel processing on user query based on a full-
text retrieval index, a vector retrieval
index system and a
knowledge graph, and finally generating a product concept. According to the method, the retrieval speed, the semantic depth and the
logical reasoning ability can be considered at the same time, and the retrieval accuracy is improved.