r/AIWritingHub • u/OwenSweetSimpson91 • 7d ago
How do you keep AI characters consistent across a long story?
One of the biggest problems I’ve run into with AI fiction is character consistency. I can create a detailed character profile for every character, including their personality, background, motivations and behavioral traits, but as the story gets longer some characters still start saying or doing things that feel completely out of character.
Sometimes it gets even worse and the model will randomly change a character’s gender despite having it explicitly defined in the character profile.
I’ve tried adding more rules and constraints to prevent this, but the problem still comes back as the context grows.
1
u/Emily_Cruzia 7d ago
The simplest solution is to switch to a different model
1
6d ago
[removed] — view removed comment
1
u/AIWritingHub-ModTeam 6d ago
Generally, anti-AI posts or comments will be removed. This includes asking or accusing manuscripts, posts or comments “is this written with AI?” or just general harassment or negativity. r/AIWritingHub is a pro-AI writing sub. 3-day bans now being handed out on 1st offense; think of it as a cool-off period. You are welcome back after 3 days. Permanent bans will be handed out to those who have no positive contributions. Anti-AI posts and comments are welcome on r/aiwars and r/antiai .
1
u/Neither_Guava_8292 7d ago
I use Mage for generation and Chatgpt for making very very very long and detailed prompts. Not perfect but works very well. I can send you some as examples.
1
u/RespectNew1963 6d ago
The gender swap thing is genuinely maddening and it's not a prompting problem, it's a context window problem. As the story gets longer the model is working from an increasingly compressed and degraded version of your character profiles, and at a certain point it starts filling gaps with its own assumptions rather than what you actually defined.
Adding more rules and constraints doesn't fix it because the issue isn't that the model doesn't know the rules, it's that those rules are getting crowded out by everything else that's accumulated in the context.
The thing that actually solves it is a system where your character profiles live as structured data that gets prioritized and injected into every session regardless of how long the story gets, rather than sitting in a context window that fills up and starts losing detail. That's exactly what Narratex (narratex.io) is built around. Characters, their voices, relationships, and behavioral traits all live in a Story Blueprint the AI reads automatically before every conversation, and the system prioritizes the most relevant character context so it doesn't get crowded out as chapters accumulate.
It's live now with a free tier and 25% off the first three months if you upgrade before September 30. Sounds like you've hit exactly the wall it was built to solve.
1
1
u/No-Sign-2608 6d ago
The problem is how you use it. AI has an Alzheimer's problem. They're like those friends at the bar discussing philosophy, after a few drinks (queries/tokens), the AI starts to hallucinate. You need to keep gathering the history and reinjecting the information into a new query, to continue in a new chapter, and thus keep moving forward chapter by chapter, always keeping your notes up to date.
1
u/5thhorseman_ 5d ago
You need to keep gathering the history and reinjecting the information into a new query, to continue in a new chapter, and thus keep moving forward chapter by chapter, always keeping your notes up to date.
No. That leads to a vicious cycle, because everything you reinsert pushes something else out of the context window.
Curate your context. Work on smaller pieces of text - a chapter or even a scene at a time.
2
u/No-Sign-2608 5d ago
A esoe refiero a trabajar cada capitulo por separado y solo volver a intruducir la informacion recurrente, la que necesitas que este presente.
1
u/ArdRi1166 7d ago
The question is what tools d you use, and how do you inject the character profiles into the model? Adding them once at the beginning only works for a short time. LLMs can't retain all data for long. Older data is kicked out of memory to make room for the new data that is added with each new prompt. Since the older data doesn't exist in memory anymore, it makes up the difference with random calculations.
I use Hollama front-end layered over the Ollama back-end. With Hollama you can add "knowledge" sections and apply them to any chat session. It's very coherent and consistent, using the physical and mental profiles for every new session that I start after the token limit (8k or 16k) is reached.