Memory books
Supplemental long-form lore the AI can pull from on demand, without bloating the active prompt.
Memory books are a supplemental memory system for the AI. They let you store rich, detailed background information about a character or world without dumping it all into the active prompt.
The AI doesn't actively use a memory book entry until something in the conversation mentions one of its keywords. At that point, the entry is pulled in and made available for the reply.
Memory book entries are inert until referenced. If you have a character with a pet named Jack, the AI won't bring Jack up on its own — but if you ask "do you have any pets?", the entry with pet, dog, Jack as keywords activates and informs the reply.
Why not just put everything in the profile?
LLMs have a finite context window. Every token spent on backstory the AI doesn't currently need is a token that can't be used on the conversation itself. Memory books let you keep characters deep without paying that cost on every turn.
A good rule of thumb:
- Character profile — the things the AI should always know.
- Memory book — the things the AI should know when relevant.
Writing good entries
Use multiple keywords per entry
The AI looks up entries by matching keywords against the recent conversation. The more relevant keywords per entry, the better the recall.
Bad:
Keywords: dog
Content: Jack is a five-year-old border collie.Better:
Keywords: dog, pet, Jack, animal, border collie
Content: Jack is a five-year-old border collie. He's high-energy and loves frisbees.Keep entries tight
Long entries crowd the prompt when they activate. Aim for the shortest text that captures the fact.
Group related facts
If three facts always activate together, put them in one entry. If they activate independently, split them.
Attaching a memory book
A memory book can be attached to:
- A character — the AI knows this lore whenever the character is in the chat.
- A scenario — the lore is available only inside this scenario, regardless of which character.
Attach via the character's Memory Book tab or the scenario's General → Attached Memory Book field.