The invention discloses a
hybrid enhanced index and
system based on vector retrieval and a BM2
algorithm, and the method comprises the steps: uploading a document by a user, analyzing the document by the
system to obtain text content, segmenting the text content, converting the segmented text content into dense vectors, storing the dense vectors in a vector
library, extracting keywords of segmented texts by using a
large model,
processing the keywords, and inserting the keywords into a
word list. Word segmentation is carried out on the text based on the constructed
word list and a word segmentation device; in response to the received user query, vectorizing the user query, and calculating the similarity with each vector in the vector
library to obtain a preliminary query result; performing word segmentation on user query, performing keyword retrieval by using a BM25
algorithm according to a
word list and a word segmentation device to obtain query results, and filtering the similarity of the two query results by the reordering model according to a set threshold value; selecting a result with the highest similarity according to
large model parameter limitation and an upper limit set by
business requirements; and splicing the document content corresponding to the result and the user query into a cue word, inputting the cue word into the
large model, and analyzing a
semantic relationship and a
logic structure in the cue word to generate an answer.