Course contentsShow
← AI Engineering
Lesson 597 of 1,88615. AI Agents - ArchitectureFree lesson

Memory Types: Semantic, Episodic, Procedural

Learn the three key memory types agents use: facts/knowledge, past experiences, and learned behaviors.

Memory Types: Semantic, Episodic, Procedural

What you'll learn: How AI agents organize memory into three distinct types—facts, experiences, and skills—to make better decisions.

Understanding the Three Memory Types

Just as humans store information differently depending on its nature, AI agents benefit from organizing memory into specialized types. Each serves a distinct purpose in the agent's perception-reasoning-action loop.

Semantic Memory: Facts and Knowledge

Semantic memory stores general facts, concepts, and structured knowledge that aren't tied to specific moments. For an AI agent, this includes:

  • "The capital of France is Paris"
  • "HTTP status code 404 means not found"
  • User preferences and static information

Think of it as the agent's encyclopedia—timeless truths it can reference anytime.

Episodic Memory: Past Experiences

Episodic memory records specific events and interactions with temporal context. Each memory captures what happened, when, and where. For agents, this means:

  • "User asked about pricing yesterday at 2pm"
  • "Previous API call to weather service failed 5 minutes ago"
  • Sequential conversation turns

It's like a diary—memories tied to specific moments that help the agent learn from history.

Procedural Memory: Learned Behaviors

Procedural memory stores "how-to" knowledge—patterns of action that the agent has learned work well. Examples include:

  • "When error code X occurs, retry with exponential backoff"
  • "Format financial data as tables for better clarity"
  • Successful tool-calling sequences

This is muscle memory—knowing how to do things without consciously reasoning through each step.

How They Work Together

An agent might use semantic memory to recall that a user prefers JSON responses, episodic memory to remember the last three questions were about databases, and procedural memory to know the best sequence of tools for database queries.

Key Takeaway: Agents use three memory types—semantic (facts), episodic (experiences), and procedural (skills)—to create context-aware, adaptive behavior in the perception-reasoning-action loop.