Comment on How can I use an LLM to generate a 10k word long coherent story?
ChasingEnigma@lemmy.world 3 weeks ago
Creating a 100,000-word coherent story using an LLM with a limited context window requires strategic planning in how you manage the narrative flow, continuity, and character development over multiple sessions. Here’s a strategy tailored for this scenario:
-
Detailed Plot Outline:
Expand the Outline: Break down the story into smaller, manageable arcs or segments (e.g., each act could be split into several chapters). Each segment should have its own mini-outline: Major plot points Character development for that segment Setting changes Key interactions or conflicts Micro-Outline for Each Chapter: For each chapter within these arcs: Opening scenario Middle conflict Resolution or cliffhanger Character arcs within the chapter
-
Session Management:
Context Management: Due to the limited context window, you’ll need to manage how much information is retained from session to session: Summarize Previous Content: Before each new prompt, provide a concise summary of the previous narrative sections. This summary should include: Key events Current state of characters Unresolved conflicts or mysteries Setting and time Prompt Structure: Start with a Summary: Begin each prompt with a summary:
Previous chapter summary: [insert summary here]. Now, write the next chapter where [describe the key elements from the micro-outline]. Specify Tone and Style: If the story has a specific tone or narrative style, remind the LLM of this: Maintain the [tone/style] from previous chapters.
Length of Each Segment: Estimate how many words you can comfortably fit into one session. If your LLM can handle around 2,000 tokens (which could be around 1,500 words, depending on the model), you might aim for each session to produce a chapter of 1,500 words.
-
Continuity and Cohesion:
Character Consistency: Keep a running document of character details, relationships, and developments outside the LLM context. Use this to ensure consistency: Character sheets Timeline of events Plot Devices: Use recurring elements or plot devices to maintain cohesion: Recurring themes Foreshadowing elements from earlier segments Feedback Loop: After each session, review the output for: Continuity errors Character voice consistency Plot holes
Use this feedback to adjust your next prompts or summaries to address any discrepancies.
-
Incremental Development:
Iterative Refinement: As you generate content, refine your prompts based on what works…
AresUII@lemmy.world 3 weeks ago
Don’t be afraid to revise what you get by hand either
ChasingEnigma@lemmy.world 3 weeks ago
I want to know what’s the best I can get automatically. I don’t want to do or revise anything by hand.
Agrivar@lemmy.world 3 weeks ago
Gross.
FourPacketsOfPeanuts@lemmy.world 3 weeks ago
urgh .
november@lemmy.vg 3 weeks ago
Looking through your past comments on Lemmy the only other thing I can see is this:
You’re just not interested in doing anything at all for yourself, huh? You just want to sit there and mindlessly consume whatever shows up in front of you?
rayquetzalcoatl@lemmy.world 3 weeks ago
“I don’t want to do or revise anything by hand” AI dorks are wonderful 🤌🤌
compostgoblin@slrpnk.net 3 weeks ago
Then why bother?
hendrik@palaver.p3x.de 3 weeks ago
I think it's impossible then. My experience aligns with these recommendations. First tell it to come up with interesting story ideas. Then pick one. Have it write an outline. Have it come up with story arcs, subplots and a general structure. Chapter names... Then tell it to write the chapters individually, factoring in the results from before. Once it trails off or writes short chapters, edit the text and guide it back to where you want it to be.
It'll just write bad and maybe short stories unless you do that. I mean you could theoretically automate this. Write a program with some AI agent framework that instructs it to do the individual tasks, have it reflect on itself, always feed back what it came up with and include it in the next task.