The invention relates to the technical field of prompt optimization
engineering, in particular to an embedded clustering multi-path recall
large model question and answer method,
system and device and a medium, and the method comprises the following steps: preprocessing a multi-
source text to generate an associated
paragraph, and converting the associated
paragraph into a
semantic vector; executing clustering and adjusting a clustering center based on a matching strategy to form a vector
library; receiving queries, converting the queries into semantic vectors and retrieving related units in parallel; the recall result is comprehensively evaluated on the basis of a credibility
perception attention mechanism in combination with
semantic matching and timeliness
score, the
semantic matching score is calculated by a local bge-ryanker-v2-m3 model, the timeliness
score is quantized through a date difference
attenuation function, and finally high-quality content is weighted and screened to be input into a large
language model to generate question and answer output. And the result accuracy, timeliness and service adaptability are improved.