← Back to CoursesAgentic AI: Intermediate

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

The Agent Loop in 3D

Watch a thought travel through Perceive → Plan → Act → Observe. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Memory, State, and Context Management

Manual: General · Subject: Agentic AI

Learn how agents store, retrieve, and prioritize information over short and long time horizons.

Why Memory Matters

Context Is Not Enough

The model context window is limited, but many tasks require continuity across time. Memory helps an agent remember user preferences, task history, intermediate results, and unresolved questions.

Kinds of Memory

Short-term memory stores the current conversation and working notes. Long-term memory stores durable facts, preferences, and episodic traces. Retrieval memory brings back only the most relevant information for the current step.

Memory Types Compared

TypePurpose
Working memoryHolds active reasoning state
Episodic memoryStores events and past interactions
Semantic memoryStores stable facts and concepts
Retrieval memoryFetches relevant items on demand
💡

Memory Design Tip

Store less than you think, but retrieve better than you expect. Relevance ranking often matters more than raw storage size.

What is the main benefit of retrieval memory in an agent?

Why can long tasks fail if an agent relies only on the immediate context window?

A Simple Memory Update Cycle

  1. 1

    Step 1: Observe the new interaction or tool result.

  2. 2

    Step 2: Decide whether it is important enough to store.

  3. 3

    Step 3: Compress it into a useful representation.

  4. 4

    Step 4: Save it with metadata such as time and source.

  5. 5

    Step 5: Retrieve it later only when it is relevant.

Which memory type is most appropriate for stable user preferences?