Episodic Memory
Master how AI agents store and retrieve personal experiences, contextual memories, and temporal events
Your Progress
0 / 5 completedHow Episodes Are Stored
Unlike semantic memory's abstract facts, episodic memory stores rich, multi-dimensional records of events. Each episode is a complete snapshot with temporal, contextual, and relational information.
Think of it as a database row with metadataβnot just what happened, but when, where, who, why, and with what outcome.
π¦ Episode Data Structure
{
"episode_id": "ep_20251115_143022_abc123",
"event": {
"type": "user_message",
"content": "Can you help me debug this API error?",
"action": "request_assistance"
},
"temporal": {
"timestamp": "2025-11-15T14:30:22Z",
"timezone": "America/Los_Angeles",
"session_start": "2025-11-15T14:15:00Z",
"relative": "15 minutes into session"
},
"participants": {
"user_id": "user_12345",
"user_name": "Alice Developer",
"agent_id": "agent_debug_assistant",
"conversation_id": "conv_xyz789"
},
"context": {
"channel": "web_chat",
"location": "dashboard",
"prior_topic": "authentication_setup",
"session_history_length": 8
},
"metadata": {
"sentiment": "frustrated",
"urgency": "high",
"intent": "technical_support",
"entities": ["API", "error", "debug"],
"topics": ["troubleshooting", "api_integration"]
},
"outcome": {
"resolved": true,
"satisfaction": 4.5,
"follow_up_needed": false,
"resolution_time_seconds": 180
}
}Interactive: Six Dimensions of Context
Click each context dimension to explore what information it captures.
ποΈ Common Storage Strategies
πChronological Logs
Simple time-ordered lists of events. Fast to append, easy to replay conversations.
ποΈIndexed Databases
Structured storage with indexes on time, user, topic. Fast retrieval by any dimension.
π§ Vector Embeddings
Episodes encoded as vectors for semantic similarity search. Find conceptually related past events.
πΈοΈGraph Structures
Episodes as nodes, relationships as edges. Trace connections between events over time.