← Back to glossary
+Suggest a term
Concept·Agents & Automation·Added 1 day ago

Memory

Also known as: AI memory, agent memory, persistent memory, long-term memory, short-term memory

How an AI agent stores and retrieves information across conversations or tasks. By default, LLMs forget everything when the conversation ends. Memory systems are what you build to change that: storing facts, past interactions, user preferences, and task history somewhere the model can access later.

A base LLM has no memory. Each conversation starts fresh. Everything the model 'knows' about you or your task exists only within the current context window, and disappears when you close the chat. This is fine for one-off questions but breaks down for personal assistants, long-running projects, or agentic tasks that span multiple sessions.

Memory in AI systems usually means one of several things. In-context memory is just the conversation history being fed back into the prompt: it's temporary and bounded by the context window. External memory is a separate store, often a database, where facts and history are saved and retrieved when needed, similar to how RAG retrieves documents. This is how products like ChatGPT's memory feature or Claude Projects work: they store key information about you and pull it back when relevant.

For builders designing agents, memory architecture is a real design decision. Do you store every message? Just extracted facts? User preferences? Task state? How do you retrieve the right memory at the right time without overloading the context? Memory poisoning is also a real concern: if an attacker can write to an agent's memory store, they can influence future behavior. Agent memory is one of the richer engineering problems in the agentic tooling space.

This definition is AI-generated and refreshed weekly. It may contain inaccuracies. Use your own judgment, especially for production decisions.
Related terms
Agent memoryMemory LayerMemory managementContext windowRAGContext engineering