Ok. So imagine I want to build a game in the style of GTA but that plays like an…
- User
Ok. So imagine I want to build a game in the style of GTA but that plays like an interactive fiction. LLMs write the descriptions, I issue the player's command. Because LLMs don't have a real, solid long term memory, I will orchestrate a system composed of multiple LLMs communicating with each other and a database to store the elements of the story they generate (otherwise they don't remember). There are many aspects to a story: from facts to reader engagement, what objects are present, their location, what has been said to whom, inventory in pockets, geographical coherence, abstract narrative grammar structures, an many, many other aspects. How could I organise some kind of "society of LLMs" to generate stories in and keep a semblance of logical coherence to the open-word GTA-inspired world they happen in ? More specifcially, what exact architecture, which roles would you assign for LLMs, how would you link them to gpt-index, what data would they exchange and how, what memories would they store and retrieve and why, in which order, for what. That kind of interrogations.
Assistant
I think there are a few ways you could structure this, but the simplest one that comes to mind is to have a "narrator" LLM, which is responsible for generating the overall story, keeping track of all the various elements, and also responding to player commands. You could also have a separate LLM for each major character in the story, who would respond to commands, generate dialogue, and maintain their own internal state and memory. You could also have additional "world state" LLMs that would keep track of various global elements of the story world, such as weather, time of day, or other persistent factors. The narrator LLM would coordinate all of these various LLMs to ensure a coherent story experience. The narrator LLM would communicate with the player via a simple text-based command interface, and also interact with the other LLMs to generate the story and keep track of the world state. The other LLMs would respond to commands from the narrator LLM, communicate with each other as needed, and also generate text for the player. The narrator LLM would maintain a database of persistent story elements, such as characters, locations, and items, which the other LLMs could retrieve and update as needed. The narrator LLM would also maintain
- User
continue
Assistant
a database of the player's actions and decisions, so that the story can be tailored to the player's specific experience.
In terms of specific architecture, you could use a combination of GPT-3 and GPT-2 models, with the narrator LLM being the main GPT-3 model and the other LLMs being GPT-2 models. You could also use a reinforcement learning algorithm to reward the narrator LLM for generating stories that are coherent and engaging.
In terms of data exchange, the narrator LLM would communicate with the other LLMs via a simple API, passing information about the current state of the story, the player's actions, and any other relevant information. The other LLMs would respond with their own updates to the story, such as character dialogue or changes to the world state.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.