Skip to content

Interview question · Agent Memory & State

Memory, context and retrieval: draw the difference for an assistant used for months.

Easy to say, easy to blur. The answer that scores places one concrete fact in each box and says who writes it, who reads it and how long it lives.

easyEssentialNewUpdated Nov 2026

TL;DR: Context is what the model reads on this request; it is assembled by the harness and gone when the request ends. Retrieval reads from a corpus that people and other systems curate and many users share. Memory is what the assistant system writes from its own interactions, scoped to a user, team or agent, and reads back in later sessions. For an assistant used over months, the three answer different questions: what do I need right now, what does the organisation know, and what have I learned about this person and this work?

How to approach it

Start with the fact that settles most confusion: the model keeps nothing between requests. Then draw the three as sources feeding one context, and make the distinction concrete with an example fact for each, plus who writes it and how long it lives.

A strong answer

Picture an assistant that a sales engineer uses daily for six months.

                 ┌─────────────── context for this request ───────────────┐
                 │ instructions · tools · this conversation · notes ·     │
                 │ a few retrieved passages · a few memories              │
                 └────────▲───────────────────▲──────────────────▲────────┘
                          │                   │                  │
                 run state and notes    retrieval corpus      memory store
                 (this task)            (the organisation)    (this user, months)
ContextRetrieval corpusMemory
ExampleThe draft proposal open right nowProduct pricing sheet, security whitepaper"Prefers proposals under two pages"; "Account X is mid-renewal"
Written byThe harness, each requestProduct, legal, other teamsThe assistant system, from its sessions
Lives forOne requestAs long as the sourceWeeks to months, with expiry
Shared withNobodyMany usersThis user (or team), by policy
Goes wrong byToo long, too noisyOutdated or missing sourceWrong, stale, or read in the wrong scope

Why the distinction matters in design.

  • If the assistant wrote its conclusions into the shared corpus, one user's wrong belief would reach every user, and nobody curated it.
  • If it kept six months of history in context, the context would stop fitting, cost more every turn and get worse with length.
  • If memory had no scope, the renewal status of one customer could appear in another user's session.

What interviewers probe next

"Isn't memory just retrieval over past conversations?" The mechanism can be similar (search and inject), but the differences are in the write side: what is kept, who wrote it, how trusted it is, and who may read it. Treating memory as just another index skips those decisions.

"Where do the user's saved documents go?" In a retrieval corpus scoped to that user. They were written by the user, not distilled by the assistant, so they are retrieved as documents, not memories.

"Can the assistant work without memory?" Yes, and many should. Memory earns its place when users return with related work and repeating context costs them time.

What if?

What if · interview follow-ups

Hold your answer as the constraints change

You are designing an assistant a sales engineer will use daily for six months.

  1. Start here

    What if the engineer says 'remember that Account X's renewal is in March'?

How it's scored

Weak: Uses the words interchangeably, or describes memory as a bigger context window.

Hire: Separates the three with examples and notes that the model itself keeps nothing between requests.

Strong Hire: Compares them by writer, lifetime, audience and failure, places concrete facts in each, explains the design bugs that come from mixing them, and keeps facts owned by other systems out of memory.

Common mistakes

  • Saying the model "remembers" across sessions.
  • Treating memory as a shared knowledge base.
  • Copying facts owned by other systems (prices, policies) into memory where they go stale.
  • Ignoring scope until something leaks.
You just read a free answer. Every topic opens its first 5 answers to anyone. Sign in and the count per topic goes to 6, and the site remembers where you stopped in each one.Google sign-in · free · no payment details
HOW DID IT GO?
0
READING SIGNED OUT

Signing in raises your free answers from 5 to 6 per topic, adds an applied lesson in every topic and easy practice tests, and the site starts remembering you: mastery per topic, bookmarks, and a next-focus recommendation. Free, no card.

Sign in free
UP NEXT ON YOUR JOURNEY
DISCUSSION · 0

Nobody has commented. Post a correction or another way to answer.