Part 5/10:
A significant portion of the project revolves around recursively summarizing prior story segments and adding new content. Shapiro sketches out a looped process where:
A story segment (or "chunk") is generated.
The chunk is summarized using a "write a concise summary" prompt.
The summary is appended to previous summaries, effectively compressing the story's history.
A new story segment is generated based on the combined previous story plus its summary.
This iterative process helps maintain coherence over lengthy narratives, as the model continually references a condensed history of prior events rather than raw, unbounded text. It prevents the story from diverging or becoming incoherent over multiple generations.