# Memory (/docs/memory)

A long chat without memory is a transcript. With memory, the app can bring back a
detail from earlier and use it in the next reply. Memory is a retrieval system,
not a promise of perfect recall.

## How it works [#how-it-works]

1. **Store.** As a chat runs, conversation content is added to Supermemory for
   your account.
2. **Search.** Before a reply is written, the app searches for relevant context
   and your memory profile.
3. **Use.** What comes back is added to the prompt next to your persona and
   lorebook entries.

The memory system builds a graph, so it can connect related details and update a
fact that changed. When a plan moves from Thursday to Friday, the newer detail is
what a reply should use.

## What is stored, and where [#what-is-stored-and-where]

- Memories live in a **user namespace**. A search is filtered by character, and by
  persona when you selected one, so two characters do not share one memory.
- A **memory profile** holds stable preferences and facts about you. It is read
  with the retrieved memories.
- Turning memory off in a chat stops retrieval for that chat.

## Why a detail can be missed [#why-a-detail-can-be-missed]

Retrieval is best effort. Fresh conversation content is processed
asynchronously, so a chat that just ended can still be empty in search and fill in
a moment later. A retrieval can also return nothing when the wording does not
match.

Treat memory as help, not as a guarantee. If a detail matters, keep it in the
persona or the lorebook where it is always in context.

The service behind this is Supermemory. [Supermemory in chats](/docs/supermemory)
describes the namespace, the filters, the metering, and links the upstream
documentation index at `supermemory.ai/docs/llms.txt`.

## Memory is not a lorebook [#memory-is-not-a-lorebook]

| | Lorebook | Memory |
| --- | --- | --- |
| Who writes it | You | The system, from your chats |
| When it appears | When a trigger key matches | When a retrieval matches |
| What it holds | World knowledge | Conversation content and your profile |
| Can you edit it | Yes, entry by entry | Not directly |

A lorebook entry is exact and always available when its key matches. Memory is
broader and less predictable. Use both: the lorebook for rules of the world, the
memory for what happened in the story.

## Turning it on and off [#turning-it-on-and-off]

Memory is a per-chat setting. Open the chat settings and switch memory on or off.
The character page shows whether a character supports memory.

## Privacy [#privacy]

The graph you see on the [welcome page](/), and any atlas illustration in this
documentation, is a fictional example. It is not a view of a real account. Memory
retrieval runs inside your own namespace, and a public character cannot read your
memories from a different account.