Unfortunately I was still tinkering with it in Playground so I don’t have any code to share but I can recreate some of the work. Basically you must take an iterative approach since GPT-3 can’t handle very long tasks yet.
First, ask for some basic ideas and pick one.
Generate some story ideas for a movie in the following genre: ROMANCE.
MOVIE IDEAS:
- Too many Loves to Love
- When You Wish Upon a Pizza
- God Puts the Stars Where They Are
Take that idea and ask for THEMES. Remember, the theme of a story is a universal truth or idea that speaks to all the characters, plot points, and setting.
Generate some possible THEMES for the following movie idea in the genre ROMANCE:
MOVIE IDEA: When You Wish Upon a Pizza
THEMES:
- All in a day’s work for the pizza delivery guy
- Craving and craving deliverance
- Kids never want to eat their vegetables
So for summary, we already have the following details of the movie:
- Genre (we decided that)
- Premise
- Theme
This forms the metadata for the movie, but all stories have three main ingredients: plot, setting, character. Since this is romance, it is probably a character-driven story, so we generate characters first.
Generate some characters with descriptions for the following movie:
Genre: ROMANCE
Idea: When You Wish Upon a Pizza
Theme: Craving and craving deliverance
CHARACTERS AND DESCRIPTIONS:
- HUNTER: He and his girlfriend are unlucky in love when they take in a stray dog.
- GINA: Hunter’s girlfriend who finds it hard to make her way back home after she is injured and lost, but the stray dog is always by her side.
- ERNIE: Abandoned dog that befriends Hunter and Gina.
- JACK: Hunter’s father who turns his own business around to make sure his son has a better life after he meets Gina.
- ABBY: Jack’s girlfriend who gets along well with Gina.
- UNCLE FRANK: Rumor has it that he is Gina’s father.
Be warned, it’s going to get longer and longer now since GPT-3 is stateless. That means every detail we choose must be in every prompt!
Now that we have characters, we need a plot. This one looks like it’s going to be a gut punch!
Generate some very detailed plot ideas for the following movie:
Genre: ROMANCE
Idea: When You Wish Upon a Pizza
Theme: Craving and craving deliverance
Characters:
- HUNTER: He and his girlfriend are unlucky in love when they take in a stray dog.
- GINA: Hunter’s girlfriend who finds it hard to make her way back home after she is injured and lost, but the stray dog is always by her side.
- ERNIE: Abandoned dog that befriends Hunter and Gina.
- JACK: Hunter’s father who turns his own business around to make sure his son has a better life after he meets Gina.
- ABBY: Jack’s girlfriend who gets along well with Gina.
- UNCLE FRANK: Rumor has it that he is Gina’s father.
PLOT IDEAS:
- Gina’s father (Frank) only feels that he should be with her to help her and she needs to choose between him and Jack, his step-father.
- Abby feels the same way about Gina as Frank does and pursues her for this reason.
- Hunter goes missing for a while when he is trying to escape the family life and ends up on a life-changing journey.
- Gina falls in love with Hunter as he helps her find the right person to be with.
- Gina tries to find herself but struggles with what she really wants for her future until she learns from other people in a similar situation.
- Gina leaves Jack for her long-lost father, Frank and they become happy while living together.
- Abby reaches out to Gina by being supportive and close to her as she decides what is best for her future.
Already, GPT-3 has forgotten about Ernie - the central symbol of the theme! So expect the quality to deteriorate from now on. This is now apparently a post-apocalyptic romance!
Generate some very detailed setting ideas for the following movie:
Genre: ROMANCE
Idea: When You Wish Upon a Pizza
Theme: Craving and craving deliverance
Characters:
- HUNTER: He and his girlfriend are unlucky in love when they take in a stray dog.
- GINA: Hunter’s girlfriend who finds it hard to make her way back home after she is injured and lost, but the stray dog is always by her side.
- ERNIE: Abandoned dog that befriends Hunter and Gina.
- JACK: Hunter’s father who turns his own business around to make sure his son has a better life after he meets Gina.
- ABBY: Jack’s girlfriend who gets along well with Gina.
- UNCLE FRANK: Rumor has it that he is Gina’s father.
PLOT:
- Gina’s father (Frank) only feels that he should be with her to help her and she needs to choose between him and Jack, his step-father.
- Abby feels the same way about Gina as Frank does and pursues her for this reason.
- Hunter goes missing for a while when he is trying to escape the family life and ends up on a life-changing journey.
- Gina falls in love with Hunter as he helps her find the right person to be with.
- Gina tries to find herself but struggles with what she really wants for her future until she learns from other people in a similar situation.
- Gina leaves Jack for her long-lost father, Frank and they become happy while living together.
- Abby reaches out to Gina by being supportive and close to her as she decides what is best for her future.
SETTING:
- High school-esque setting.
- The city that the characters are in is overpopulated with homeless people and drug addictions.
- On the outskirts of the city, the desert is inhabitable by all other living things than cacti.
- Abandoned homes from before the “plague” as people call it, are now used as hideouts for people.
- A restaurant is the scene of many heartbreaks and reunions from couples who meet and get along there.
- A movie theater is a place where couples put on the best show of affection and others try to be as happy as they are for this rare opportunity to have happiness in the city.
Obviously, this is becoming incoherent now so I’ll stop with this, but clearly you could write a screenplay from this. With the finetuning endpoint now available, I would create training data where the input are summaries such as this and the output are screenplays. Still, you are going to run into the major limitation of 2048 tokens, which means you have to fit ALL of this, somehow, into every prompt as well as the story that has happened so far as it generates the screenplay. I talk about how to achieve some of this in my book, which should be ready for release this weekend. Basically, if you want to generate an entire movie this way, the complexity goes up 1000x. You’ll need to treat each character individually with a “mind” and life of their own, record lots of details about the world, and then have them all interact. This is not practical to do by hand so you’ll need some scripts.
The biggest saving grace is that you can store all of these outputs as text files and use the Answers endpoint to help summarize the entire story while it is writing each scene.