The invention discloses a question and answer method and
system combining a large
language model and a
knowledge graph, and relates to the field of question and answer, and the method comprises the steps: determining corresponding meta-knowledge based on a meta-
knowledge base according to a retrieval question, and the meta-knowledge comprises knowledge description, query actions and question entities; the meta-
knowledge base comprises a
knowledge graph; the meta-knowledge and short-
term memory are combined to obtain cue word information, then a large
language model is adopted to execute a query action and complete current reasoning, and an obtained response result is evaluated to obtain a reward
score; if the reward
score does not meet the preset condition, generating reflection correction information according to the response result, respectively storing the reflection correction information and the cue word information into a long-
term memory and a short-
term memory to realize data updating, updating the meta-
knowledge base based on the updated long-term memory, and then executing the next round of reasoning; and if the reward
score meets a preset condition, marking the response result as a question and answer result. The
knowledge graph-based question and answer accuracy can be improved.