The application discloses an
intelligent agent memory and question and answer
system, an enhanced retrieval method and a
memory management method, and belongs to the technical field of memory and question and answer, and the
system comprises: a user interaction module, which receives a query text of a user and presents a question and answer result; a hierarchical memory
library, which stores memory nodes and a causal relationship graph among the memory nodes; a causal enhanced retrieval module, which performs enhanced retrieval on the query text in the hierarchical memory
library; a question and answer generation module, which generates a question and answer result based on a
retrieval result; a memory intervention module, which constructs an anti-fact
scenario of deleting a current target memory, generates an anti-fact answer, compares the similarity of the anti-fact answer and the question and answer result, and obtains an influence degree
score of the target memory; and an adaptive maintenance module, which manages the memory stored in the hierarchical memory
library according to the influence degree
score. The application can retrieve causal and relevant memories when a user queries, and quantifies the influence of a single memory, thereby realizing
scientific management of long-
term memory of an
intelligent agent.