Dene33 / world-gpt

Other
52 stars 5 forks source link

Interactive story engine? #21

Open dmikushin opened 10 months ago

dmikushin commented 10 months ago

Hi @Dene33 , great project!

I'm looking for an engine that is able to morph stories depending on the player's choice dynamically, up to undetermined final.

Interestingly, whatever prompt I try with different GPTs and LLMs, they refuse to understand the need to give only a start of the story and then list the possible player's actions for his choice. Have you tried something like this?

Dene33 commented 10 months ago

@dmikushin Hey, thanks for the feedback!

I've tried a few other similar projects but they're a bit different. Let me describe the current concept of this project:

  1. It's a step-by-step generation but after each step, it will not generate a set of options for the user to choose from.
  2. Instead it will generate by itself the next state of the world (and of every NPC). How? It sends a request to LLM (GPT-4) with information on the current state and the previous n states (currently the depth of previous steps taken into account is 2)
  3. But right before that the user can intervene by changing the current state of the world/NPCs. That's how you drive the story, not by selecting the desired output of the limited set of pre-generated intermediate outputs
  4. Prompts are constructed in a way that allows NPCs to communicate with each other and respond to the world state. Every NPC has its own goal that it tries to accomplish

Here is a little bit outdated illustration: image

You can check the video with a short demo here: Watch the video

Or test it yourself online: https://www.story-generator.ai/

Or even run it locally (but you need your own OpenAI key): https://github.com/Dene33/world-gpt/releases

Let me know if you want to know more! Thank you!