The invention discloses an AI model illusion suppression method and
system based on retrieval enhancement generation and cue word
engineering collaboration, and aims to solve the illusion problem of an existing large
language model and the defects that a traditional scheme is high in cost, low in retrieval content
utilization rate, universal knowledge conflicts, high in generation randomness and the like. The method comprises the following steps: constructing a high-precision domain vector index
database, performing similarity retrieval and
noise filtering on user query, generating a multi-level structured cue word containing role definition, thinking chain constraint and the like, dynamically switching a general knowledge shielding or fusion mode based on recall quality, and outputting a final result through multi-path reasoning sampling and consistency
verification. According to the method, underlying
model parameters do not need to be modified, the illusion rate is remarkably reduced, generated content is factual and accurate, logic coherence and
traceability are achieved, deployment is flexible, cost is low, and the method is suitable for factual question and answer scenes in multiple fields such as
medical treatment, industry and legal consultation.