-
Notifications
You must be signed in to change notification settings - Fork 70
Persistent Context
lmg-anon edited this page Nov 1, 2025
·
1 revision
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.
- 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
PrefixandSuffixthat 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.
- 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 aPrefixandSuffix.
-
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 associatedtext. -
Activation: When a
keyis detected within the recent context, the entry'stextis 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
0disables the entry. - Import/Export: You can import and export your World Info entries using a format compatible with SillyTavern.