-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Hi there, I was wondering if there is a simple guide available for generating long stories using a local Large Language Model (LLM)? I'm looking for something that I can adapt and implement within a few minutes.
I have in mind a step-by-step guide similar to the following:
# Step 1: Generate a high-level outline
high_level_outline_prompt = "Generate a brief, high-level outline for a story with the following elements: [specify desired story elements, genre, themes, etc.]"
high_level_outline = generate_text(high_level_outline_prompt)
# Step 2: Expand the outline into a detailed chapter-by-chapter outline
detailed_outlines = []
for chapter_point in high_level_outline:
detailed_outline_prompt = f"Based on the following outline point: '{chapter_point}', generate a detailed outline for that chapter, including key events, character interactions, and plot developments."
detailed_outline = generate_text(detailed_outline_prompt)
detailed_outlines.append(detailed_outline)
# Step 3: Generate the story chapter by chapter
story_chapters = []
for chapter_index, detailed_outline in enumerate(detailed_outlines):
chapter_prompt = f"Here is the detailed outline for Chapter {chapter_index + 1}:\n\n{detailed_outline}\n\nPlease generate the story text for this chapter, following the outline closely."
chapter_text = generate_text(chapter_prompt)
story_chapters.append(chapter_text)
# Step 4: Combine chapters into a complete story
complete_story = "\n\n".join(story_chapters)Is there a resource or a similar guide available that I can use with my local LLM? Any help would be greatly appreciated.
Thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels