<< Home | Prompting craft
Keep story congruent past 300 messages and 8k context
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2024-08-06 |
The move
Reinforce core traits using brief syntax inside the Character's Note or Author's Note inserted at depth.| When this works | When it doesn't |
|---|---|
| Context length expands past 8k tokens or stories exceed 300 messages, causing the model to lose track of details on the character card. | You attempt to duplicate the full character description into every note section, or you want personalities to change over time. |
Key details
- character's note
- Author's Note
- plist/alichat/w++
- inserted at a certain depth
Prompt for your AI
[Character Note / Author's Note Rule Set]
1. Context Management at Depth:
Insert brief character trait reinforcements directly into the Character's Note or Author's Note section at a low depth insertion. Do not duplicate full descriptions into every note.
2. Card Structure & Formatting:
Format the main character card as a conversation to define core traits, speech styles, and details. Use brief plist, alichat, or w++ syntax in the Character's Note to reinforce these traits constantly as context expands beyond 8k tokens.
3. Static vs Dynamic Traits:
Place permanent facts, traits, and world-building rules at a lower insertion depth in the Character's Note or Author's Note / jailbreak. Keep fluid personalities that evolve over time inside the main character description.
4. Back-Referencing & Memory:
Use the data bank notepad option combined with vector storage to log specific sets of key events. Ensure key context and events are back-referenced between vector storage and the data bank so long-running stories remain congruent over 300+ messages.
Before you give me the final result, check with me:
- Verify context length exceeds 8k tokens or history approaches 300 messages.
- Check that trait reinforcements in the Character's Note use brief syntax (plist, alichat, or w++) instead of full text duplicates.
- Ensure static traits are placed at a lower insertion depth while evolving traits remain in the main description.
- Confirm key events are back-referenced between vector storage and the data bank notepad.
What happened
When using context lengths over 8k, characters started forgetting their card details. Formatting the main card as a conversation and placing condensed plist/alichat/w++ traits in the character note at depth kept stories congruent past 300 messages.Who confirmed it
I've had stories where I've gone over 300 messages and it still makes congruent sense as it goes along when I do those things.Give it to your agent
Read https://howtheyuse.ai/p/maintain-character-consistency-in-long-context.md and help me do this.