liveBook · Manning

Episodic memory

As explained in Context Engineering

Episodic memory is retained information about past experiences and specific historical interactions.

Episodic memory stores an agent’s past experiences and specific interactions: the “things I did,” including prior events and their outcomes. It gives an agent historical context for future tasks. section 5.1.2

Unlike semantic memory, which stores facts and stable knowledge, episodic memory records specific events. Unlike procedural memory, which captures reusable workflows, it preserves what happened in a particular interaction. section 5.1.2

In an agent system, episodic memory can:

  • Store records in vector databases or log stores. section 5.1.2
  • Retrieve relevant records during a task as in-context few-shot examples or historical references. section 5.1.2
  • Be updated, consolidated, or deleted as part of the long-term memory lifecycle, including when records become stale or privacy requests require removal. section 5.1.2

Remembering a booking outcome

If a user later flags a booked flight as too early, that booking and its outcome can be retained as an episodic record and recalled during a relevant future task. section 5.1.2

How Context Engineering covers it

How deep it goes
Defines episodic memory, describes storage and retrieval, and places it alongside semantic and procedural memory.
Examples
Uses a flight booking later flagged as too early to illustrate a remembered outcome.
What you can do after
Apply stored interaction records as relevant in-context few-shot examples or historical references.
How it connects
Distinguishes episodic memory from semantic memory and procedural memory within long-term memory.

Also explained in

Compare how 2 books explain episodic memory →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Context Engineering. The section links point to the parts of the book it draws on.