The invention discloses a large
language model knowledge
verification and improvement method and device and a medium. The method comprises the steps that task description, specific problems and example
data input by a user are received; in combination with a preset
heuristic cue word and structured
processing, generating a logic expression, and removing redundant contradiction rules to form a logic
knowledge base; inputting specific questions into the large
language model to generate preliminary answers, and performing symbolization conversion on the preliminary answers to extract entities, relationships and attributes so as to obtain symbolized propositions; matching the symbolized proposition with the logic
knowledge base, if a conflict is matched, generating a candidate correction scheme through deductive reasoning, determining an optimal scheme according to a predefined correction cost function, feeding back the optimal scheme to the large
language model, and regenerating an answer; and iterating the related steps until the answer passes
verification, and outputting a final answer, a
confidence score and an
interpretability report. Through the deductive constraint and bidirectional feedback mechanism, the LLM output reliability is improved, the
knowledge base cost is reduced, and dynamic updating and
interpretability of knowledge are realized.