Memory Types

Understand how AI agents store, retrieve, and manage information across different memory systems

Why Memory Matters for AI Agents

Without memory, an AI agent starts every interaction from scratchβ€”like having amnesia. It can't remember past conversations, learn from experience, or maintain context across tasks. Memory transforms agents from stateless responders into intelligent, adaptive systems that improve over time.

Interactive: Memory Systems Comparison

Human Memory Architecture

Humans use multiple specialized memory systems that work together seamlessly. Each type handles different kinds of information with varying retention periods.

⚑Working Memory

Temporary storage for active tasks. Holds 7Β±2 items for seconds to minutes.

"What was that phone number?"
πŸ“–Episodic Memory

Personal experiences with context. "I remember when..."

"My first day at work was..."
πŸ“šSemantic Memory

Facts and concepts without personal context. General knowledge.

"Paris is the capital of France"
🎯Procedural Memory

Skills and habits. "How to" knowledge that becomes automatic.

"How to ride a bike"

Interactive: Working Memory Capacity

The "magic number" is 7Β±2 items. Adjust to see how capacity affects performance.

7 items
1 item7Β±2 (optimal)15 items
PerformanceOptimal
Cognitive Load

Impact:

Optimal range - balances context retention with processing efficiency.

Current Working Memory Contents:

β€’ Current task: Respond to user query
β€’ User's name: Alex
β€’ Previous question: 'What is memory?'
β€’ Conversation tone: Technical but friendly
β€’ Context: Educational module about AI
β€’ User preference: Detailed explanations
β€’ Session start time: 2:30 PM

The Agent Memory Challenge

Unlike humans who naturally balance different memory types, agents must explicitly design their memory architecture. Key challenges:

⏱️

Retention vs Retrieval

Storing everything is easy. Retrieving the right information at the right time is hard.

πŸ’°

Cost vs Context

More context = better responses but higher token costs and slower processing. Must optimize the tradeoff.

🎯

Relevance Filtering

Not all past information is relevant to the current task. Agents need smart retrieval strategies to avoid information overload.