Skip to content

Request for a Simple Guide for Long Story Generation with Local LLM #7

@8ullyMaguire

Description

@8ullyMaguire

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions