Start studying
Module 11 · AI Agents Module contents
Module 11  ·  Card 10 / 17intermediate

Memory

Memory is what persists beyond the current task.

Short-term memory is the working context of this run.

Long-term memory is stored facts and preferences retrieved when relevant.

It is usually implemented as a vector store queried at the start of a turn.

Deciding what is worth remembering matters more than how you store it.

Learn in depth ↓
Module 11 · AI Agents · 17 concepts
In depth  /  15 lines

Memory, in more detail

Memory is what an agent carries between tasks rather than within one.

Short-term memory is the working context of the current run.

Long-term memory is facts and preferences kept for future runs.

The user prefers metric units is a long-term fact worth keeping.

The usual implementation is a vector store queried at the start of a turn.

Relevant memories are retrieved and placed in the context, which is RAG over your own history.

The hard question is not storage but what deserves to be remembered.

Storing everything fills the store with noise and retrieval quality collapses.

A common approach is to have the model propose what is worth keeping.

That needs review, since models save trivia and miss the important line.

Memories go stale, and a preference from six months ago may be wrong now.

Store a timestamp and let recency influence retrieval.

Conflicting memories are a real problem, since two contradictory facts can both be retrieved.

Let users see and edit what has been remembered about them.

Anything remembered about a person is personal data with the obligations that follow.

Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
What distinguishes an agent's memory from its state?
AI Agents

17 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close