Memory

Step 5 of 8 in Agentic AI · Build · Medium

Short-term memory is the context window; long-term memory stores facts or summaries in a database and retrieves them later.

Build it

  1. Remembering agent

    Store facts per chat with embeddings; retrieve the top 3 into new sessions.

    Done when: It remembers your name in a new session.

Case study: Generative Agents (Smallville, 2023)

  • 25 agents lived in a simulated town with memory, reflection and planning.
  • They organized a party from one seeded idea.
  • Memory retrieval scoring (recency, importance, relevance) was key.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map