Retrieve and maintain character consistency in novel generation by querying Milvus for all passages mentioning a character. Ensures character traits, appearance, relationships, and voice remain consistent across thousands of tokens. Use when continuing a story, introducing recurring characters, or when the model generates new scenes involving existing characters.
Maintain accurate character representation by retrieving relevant passages from Milvus before generating new content.
Before writing new character scenes:
Identify characters in the prompt
Query Milvus for character passages
"[character name] appearance, personality, relationships"Extract key details From retrieved passages, document:
Inject into prompt context
Generate with grounding
Use this format when injecting character data into prompts:
Character: [Character Name]
- Appearance: [physical traits from retrieved passages]
- Personality: [temperament and speech patterns]
- Relationships:
- [Character A]: [relationship type and status]
- [Character B]: [relationship type and status]
- Current arc: [their unresolved story threads]
- Contradictions to avoid: [traits that shouldn't change]
Effective Milvus queries for character retrieval:
"[character] appearance, eyes, hair, clothing" → physical consistency"[character] said, spoke, thought" → voice and dialogue patterns"[character] relationship with [other character]" → interpersonal dynamics"[character] backstory, origin, history" → motivations and depth"[character] personality, emotional, reaction" → behavioral consistencyTrack and verify these don't change mid-narrative: