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.
Re3 is a way to write longform content that remains consistent with fewer hallucinations or contradictions, even outside the token context limit...More
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.
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.
Complete all of the exercises first to receive your certificate!
Share This Course