711
Dictionary

Long-Term Memory

Persistent state an agent carries between sessions.

1 min readupdated 2026-07-04

/ quick answer

Long-term memory stores facts, preferences, and past interactions in a database (often vector + key-value) so the agent can recall them across sessions without stuffing them into every prompt. Persistent state an agent carries between sessions.

Persistent state an agent carries between sessions. Long-term memory stores facts, preferences, and past interactions in a database (often vector + key-value) so the agent can recall them across sessions without stuffing them into every prompt. In practice: A personal assistant remembers 'user prefers 30-min meetings' and applies it forever.
Definition
Long-term memory stores facts, preferences, and past interactions in a database (often vector + key-value) so the agent can recall them across sessions without stuffing them into every prompt.
Example
A personal assistant remembers 'user prefers 30-min meetings' and applies it forever.
Related Tool Stacks

/ frequently asked

What is Long-Term Memory?

Long-term memory stores facts, preferences, and past interactions in a database (often vector + key-value) so the agent can recall them across sessions without stuffing them into every prompt.

What is an example of Long-Term Memory?

A personal assistant remembers 'user prefers 30-min meetings' and applies it forever.

Why does Long-Term Memory matter?

Persistent state an agent carries between sessions.

What should I learn after Long-Term Memory?

Open the related workflows and prompts further down this page: they show how this idea is applied in a real task, step by step.

/ topics#ai#agents

/ continue exploring

Related concepts

The vocabulary this page depends on.

  • →Episodic Memory

    Session-scoped memory of specific past events.

  • →MCP (Model Context Protocol)

    Open protocol that lets LLMs connect to tools, data sources and apps through a standard interface.

  • →Agentic RAG

    RAG where an agent decides what to retrieve, when, and from which source — instead of a single static query.

  • →Agentic Workflow

    A workflow where an LLM decides the next step instead of a hard-coded path.

all dictionary →

Related workflows

Turn this into a repeatable process.

all workflows →

Related tool stacks

The tools that run it in production.

all tool stacks →

Comparisons & alternatives

Pick between the options.

all comparisons →