Skip to content

Commit

Permalink
feat: Implementing iterate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Estrada Irribarra, Rodrigo Andres committed Oct 17, 2024
1 parent 824b429 commit 72c2e21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions storycraftr/prompts/iterate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@
"""

INSERT_CHAPTER_PROMPT = """
Insert a new chapter at position {position} in the book.
Insert a new chapter at position {position} in the book. When a new chapter is inserted at position {position},
all subsequent chapters will be renumbered accordingly.
For example, if a new chapter is inserted at position 3, the current chapter 3 will become chapter 4, chapter 4 will become chapter 5, and so on.
Use the retrieval system to access the chapters before and after this position, ensuring that the new chapter fits seamlessly with the narrative, themes, and character arcs.
Use this prompt for context: {prompt}.
Return the new chapter in markdown format, ready for inclusion in the book without adding any explanations, notes, or comments.
"""

REWRITE_SURROUNDING_CHAPTERS_PROMPT = """
Rewrite the chapters {chapter}, ensuring that they fit seamlessly with the newly inserted chapter {position}.
Write the chapters {chapter}, ensuring that they fit seamlessly with the previous and next chapter.
Utilize the retrieval system to gather context from the full book, making sure the tone, style, and character arcs remain consistent.
Use this prompt for context: {prompt}.
Return the rewritten chapters in markdown format, without adding any explanations, notes, or comments.
Expand Down

0 comments on commit 72c2e21

Please sign in to comment.