> For the complete documentation index, see [llms.txt](https://fictionlab.gitbook.io/fictionlab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fictionlab.gitbook.io/fictionlab/getting-started/memory-matrix.md).

# Memory Matrix

## Lore database

<figure><img src="/files/iRyRrdLnu7hZLRSZHEnc" alt=""><figcaption></figcaption></figure>

Lore database is a place inside the Memory Matrix where you can access your lore pieces and their current status.\
\
If you scroll to the bottom of it, you can find **"AI MEMORIES"** section.

## Memories

Memories help the AI remember important events that have already occurred during the roleplay. Think of them as sticky notes—small reminders that are presented to the AI throughout the session.

**Memories significantly extend the AI's memory and, in the best-case scenario, allow it to recall events from thousands of messages ago!**\
\
**Memories are more detailed with FL+.**

**Important Guidelines:**

* Use memories only to summarize past events.
* Do *not* use them to introduce new lore, plan future events, or give the AI instructions. Lore Pieces and Custom LLM instructions are made for that purpose.
* Misusing memories can negatively affect the quality of the roleplay.

Memories are automatically generated *every 30 chat messages*— a total of the User reply and AI reply.

For manual memory generation, use the slash command /memory-cards N where N is a number from 10 to 50.

Free users are limited to 100 memories, while FictionLab+ users have access to 500 memories.

<figure><img src="/files/V7plhG8V766sbcV3KuVS" alt=""><figcaption></figcaption></figure>

You can **pin** important memories to ensure they don't get deleted when the limit for memory cards is reached. Unpinned memories are deleted in order of creation to make space for new ones.

Make sure to click Pin then click Save to pin a memory.

**Things to Note:**

* Pinning too many memories will hurt the memory because there will be no space for new ones. Always leave some space for new memories.
* Memories are generated by a different AI model with a separate provider. They are *not* generated by the FictionLab chat models (LLMs) such as Ophelia or Oracle. Therefore, memories generation may sometimes experience heavy traffic or errors separately from what the LLMs are exhibiting. Please report bugs on the official Discord server!&#x20;
