This invention discloses a method and
system for preventing false information injection using a large
language model. The method involves: dynamically evaluating the credibility of
user input to obtain an input credibility
score; calculating a user reputation
score based on historical user behavior data and mapping it to a generation permission level; retrieving authoritative knowledge fragments from a closed-loop trusted
knowledge graph for the input and constructing generation constraint instructions based on the permission level; calling the large
language model to generate response content according to the permission level and constraint instructions; performing consistency
verification on the response content and then outputting it; finally, generating a lineage log containing end-to-end interaction data and storing it on the
blockchain. This invention, by integrating input credibility assessment, user reputation
coupling, knowledge tracing constraints, and end-to-end auditing, achieves pre-emptive identification, process blocking, and post-event
traceability of false information, effectively solving the problem of the lack of systematic defense against false information
injection attacks in existing technologies, and significantly improving the
content security and compliance of generative
artificial intelligence applications in key areas.