The invention discloses an enterprise
knowledge base retrieval and intelligent answering method and
system based on a large
language model. The method comprises the following steps: performing clause-level segmentation on an enterprise
knowledge base document, associating document
metadata to form structured knowledge entries, and establishing a keyword
reverse index and a
semantic vector index for the structured knowledge entries; analyzing the
natural language query of the user, and performing multi-strategy expansion to generate an enhanced query expression and a query
semantic vector; performing dual-channel mixed retrieval, performing duplicate removal, version filtering and weighted fusion sorting on a result, and generating a final candidate knowledge item
list; and based on the candidate
list and a predefined instruction, calling a large
language model to generate a structured answer with complete
traceability information. The method is compatible with an existing retrieval framework, precise understanding, knowledge point-level positioning, cross-document content integration and version
consistency control of
natural language problems are achieved, and the retrieval accuracy, answer availability and service intelligence level of an enterprise
knowledge base are remarkably improved.