1 Persistent Context
lmg-anon edited this page 2025-11-01 00:01:09 -03:00

This section allows you to automatically add information to the context on every generation, ensuring the model stays on track without you having to manually repeat instructions or information.

image

Memory

  • Function: Text in the Memory box is placed at the very beginning of the prompt sent to the model.
  • Use Cases: Ideal for character sheets, plot summaries, style guides, or any global information that should always be available to the model.
  • Settings (Top right corner): Click the settings icon to open a modal where you can define a Prefix and Suffix that wrap your memory text, and configure the Advanced Context Ordering. This lets you precisely control where Memory, World Info, and the main prompt appear in the final context.

Author's Note

  • Function: Text in the Author's Note box is injected a set number of lines from the end of the prompt.
  • Use Cases: Perfect for providing "just-in-time" instructions, steering the story in a new direction, or reminding the model of a specific detail relevant to the current scene.
  • Settings (Top right corner): The settings modal allows you to configure the AN Injection Depth (how many lines from the bottom to inject it), as well as a Prefix and Suffix.

World Info

  • Function: A system for automatically adding context-sensitive information to the prompt. World Info consists of multiple entries, each with a set of keys (keywords) and associated text.
  • Activation: When a key is detected within the recent context, the entry's text is automatically added to the prompt.
  • Settings:
    • Keys: Comma-separated keywords or regular expressions that trigger the entry.
    • Search Range: How many characters back in the prompt to look for keys. A value of 0 disables the entry.
    • Import/Export: You can import and export your World Info entries using a format compatible with SillyTavern.