Help · Play
Memory
How AiRP summarizes a long chat, how it picks which memories the AI reads, and how to correct them.
As a chat gets longer, AiRP writes short summaries of what happened, called memories. They help the AI keep track of events that are too far back for it to read directly.
How memories are made
AiRP turns every 20 messages, yours and the AI's, into one memory. The first memory is made at the 20th message, and there's a new one every 20 messages after that. Memories are written after a reply, so they never slow one down, and they don't cost you credits.
Each memory records only what's new or changed since the memories before it, one line per development, so it doesn't repeat what's already on file. If something contradicts an earlier memory, the new one includes a line starting "Correction:" that says what's true now.
A memory doesn't replace the messages it summarizes. The AI still reads your recent messages as usual, and the memory sits alongside them.
The AI reads your most recent messages directly, usually up to about 6,000 tokens of them, or less on a small context. Your latest exchange always comes first. Older messages reach the AI through memories and the quotes described below.
How the AI uses memories
Not every memory is sent with every reply. Before each reply, AiRP looks for memories that match what's happening now. It compares the words and names in your latest message, the last four messages, and the current scene with what's on file. Character names and their known nicknames count as matches. This applies to every chat, including ones you started before, and there's no setting to change.
AiRP picks memories in this order:
- Memories you wrote or edited. These are always sent whole.
- The most recent memory, plus up to two short recent ones.
- Older memories that match the current scene, such as the characters and places in it.
From a long memory that AiRP wrote, the AI may get only the part that matches: the matching sentence and the sentences on either side of it. A sentence is never cut in half. When nothing matches, the most recent memories are sent so the story can carry on.
The search only looks at this chat, and it matches words, not meaning. If a memory describes something in different words and names none of the same people or places, it can be missed. Mention a name or a key word in your message to help the AI find it.
Scene notes and lasting facts
After each reply, AiRP also notes where the scene is, who's there, the time, and anything left unfinished. It keeps lasting facts too, such as promises, relationships, discoveries, goals, and conditions. Each reply gets the scene notes and the facts that match the current scene. These notes don't cost you credits.
Quotes from old messages
AiRP can also quote up to four short passages from messages too far back for the AI to read directly, when they match the current scene. The AI is told these are quotes from the past. What a character said then could have been a plan, a belief, or a lie, so a quote doesn't make something true now.
How much space memory gets
Memories, notes, and quotes together can use up to a quarter of the context. When there are more than that, the least relevant ones are left out, but they stay stored. Newer messages and your corrections take priority over what a memory says.
In your own chat on a story you wrote, Context used on a reply shows which memories, notes, and quotes were sent with it and why each one was picked.
The Memory panel
Open Chat settings and select Open next to Memory. Each message counts as one turn, so a memory AiRP wrote is labeled with the turns it covers, such as "Turns 41–60". Memories you wrote or edited are labeled "Yours".
- Edit changes a memory. Once you edit one, it's treated as yours.
- Forget deletes a memory.
- Generate a memory summarizes the next messages that don't have a memory yet, without waiting for 20. Select it again to keep going.
- Add a memory lets you write your own, up to 2,000 characters. Use it for something the AI mustn't lose, such as "Kira promised Aoi she would not make a wish, and broke it the same night."
Checking your memories
AI summaries can get details wrong. If a character forgets a promise, a discovery, or a change, open the Memory panel and fix the memory, or add your own. Rewinding a chat deletes the memories made from the messages it removes.
Thanks
The way AiRP picks passages from memories is adapted from Thenwise, made by Innocent Sausage. Thank you for your contribution to AiRP.

