What Is Agent Memory and How Does It Work?
.png)


Gouvernez, déployez et suivez l'IA dans votre propre infrastructure
Frequently Asked Questions
What is agent memory in simple terms?
It is the means by which an AI agent remembers things from one step to another, and from session to session, rather than starting from scratch each time. It stores facts, preferences, and interactions, and recalls the ones it needs.
Why do agents need memory?
This is because a model starts afresh with each call by default. Memory enables an agent to maintain continuity, since it can recall your preferences, base actions on previous ones, and avoid repeating itself, which is much of what makes a multi-step agent coherent.
What is the difference between short-term and long-term memory?
Short-term memory contains the context of the current task and is forgotten once the session ends. Long-term memory holds durable information outside the window and recalls it whenever the agent needs it, so the agent remembers across sessions.
How does an agent retrieve memories?
This is usually achieved by storing memories as embeddings and doing a similarity search to find those relevant to the current context, then adding them to the context. It is exactly the retrieval machinery used in RAG.
What are the risks of agent memory?
Storing the wrong things creates noise, memories may become obsolete or even conflicting, and retaining user data raises privacy obligations. Good memory systems are selective, keep data up to date, and handle users' private data responsibly.

GenAI infra- simple, plus rapide et moins cher
Les meilleures équipes lui font confiance pour faire évoluer GenAI















