I want to write a whole story with AI

It's easy to create short form content that's consistent, but AI tends to hallucinate and introduce inconsistencies when you go outside the amount of text that fits in a single prompt.


Recursive Reprompting and Revision

Re3 is a way to write longform content that remains consistent with fewer hallucinations or contradictions, even outside the token context limit...More


Mike Taylor

Built a 50-person growth agency.
πŸ’ͺ Useful 0
πŸ˜“ Difficult 0
πŸŽ‰ Fun 0
😴 Boring 0
🚨 Errors 0
πŸ˜• Confusing 0
πŸ€“ Interesting 0
Premium subscription required.
Python experience recommended.
1. Scenario
You and your boss Gustav Gieger, CEO of GoolyBib, are sitting in a local coffee shop on a Wednesday afternoon. You've been tasked with writing a whole story with AI, and you're discussing the best way to use recursive reprompting and revision, based on the hero's journey template and least to most technique. You also need to ensure accuracy and consistency in the story.
Gustav Gieger
at GoolyBib

We need to make sure that our AI story generator has enough context to make a coherent story. It needs to know the beginning, middle and end of the story.

We should also look into the hero’s journey framework and the least-to-most technique to ensure accuracy and consistency.

Let me do a little research, and then we can come up with a plan for how to approach the task.\n

We can use recursive reprompting and revision to make sure that the story is as good as it can be.

This course is a work of fiction. Unless otherwise indicated, all the names, characters, businesses, data, places, events and incidents in this course are either the product of the author's imagination or used in a fictitious manner. Any resemblance to actual persons, living or dead, or actual events is purely coincidental.

2. Brief

Recursive reprompting and revision is an AI technique which seeks to generate longer stories beyond the limitations of the context window. By using a plan-and-draft-and-rewrite module, AI can be given a premise and then use that to generate a setting, characters, plot points, and ultimately a coherent story.

This technique starts with the premise, which is used to generate a setting. Characters are then generated based on the premise and setting. From there, the plot points are outlined, and the draft text is generated for each plot point. Finally, the draft text is rewritten in case it doesn't make sense with the facts that have been established.

The plan-and-draft-and-rewrite module can also be used to address the issue of hallucination, which is when AI makes up facts that don't actually exist. To do this, it checks for consistency between the new facts and the old facts. For example, if an AI writes that two characters have been friends for a long time, but it was established earlier that they just met, the AI will rewrite the text to match the facts.

This technique is based on the hero's journey, which is a template used in many successful movies such as Harry Potter, The Matrix, and the Lion King. It is also a form of progressive extraction, where the AI progressively extracts facts from each text and builds up a list of facts.

In conclusion, recursive reprompting and revision is a powerful technique which allows AI to generate longer, coherent stories. By using plan-and-draft-and-rewrite modules, hallucination can be addressed, and the AI can generate stories based on the hero's journey template. Through progressive extraction, AI can build up a list of facts as it goes through each text.

3. Tutorial

00:01 Okay, so this is recursive, reprompting and revision. So this is a technique for writing coherent stories way beyond the context length.

Recursive Reprompting and Revision.ipynb
4. Exercises
5. Certificate

Share This Course