Memory, State, and Retrieval-Augmented Agents
Memory as a Computational Resource
Forms of Memory
Agentic systems commonly use short-term working memory, episodic memory, semantic memory, and procedural memory. Working memory tracks the current task; episodic memory stores past interactions; semantic memory holds facts; procedural memory encodes reusable skills.
Retrieval-Augmented Acting
When context windows are limited, agents rely on retrieval to fetch relevant items from a store using similarity, metadata, recency, or task-specific filters. This enables scalable long-term operation without repeatedly re-sending all prior information.
Memory Is Not Truth
Retrieved content can be stale, incomplete, or incorrect; agents should treat memory as evidence, not ground truth.
Memory Design Questions
Which memory type is most directly used to store facts about the world?
Semantic memory is associated with factual knowledge.
Correct answer: Semantic memory
Why is retrieval useful for agentic systems with long tasks?
Retrieval enables scalable, persistent competence over long horizons.
Correct answer: It gives the agent access to relevant prior information without exceeding context limits.
Memory Failure Modes
Common errors include over-retrieval, under-retrieval, false consolidation, leakage across tasks, and confirmation bias. Research-grade systems often attach provenance, confidence scores, and deletion policies to stored memories.
What is a strong reason to attach provenance to stored agent memories?
Provenance helps the agent judge trustworthiness and trace back the source.
Correct answer: To identify the origin and reliability of retrieved information