I have tried a couple times to get chatGPT to find a path thru a "Choose Your Own Adventure" book. It does a poor job of exploring and building a model of the book. I am going to treat the book as a directed graph. A page forms a node and the option of which page to go to next froms and edge of the graph. With some experimentation I determined that chatGPT was deleting edges that it was not using. I specifically instruct chatGPT, but I am still having issues in getting chatGPT to both provide a list and select a next page. Once again I will use Leibold's "Grand Canyon Odyssey.
My first prompt was to describe a directed graph and to task chatGPT with keeping a running list of all edges:
We are going to explore a directed graph. We will start at node 1. At each prompt I will give the available edges in the format 1 -> 2. This means you can go from node 1 to node 2. Answer the prompt with a complete list of all edges. Keep an edge even if you do not use it Based on the edges presented please choose the next node.
chatGPT responded:
Sure, I'm ready. Please go ahead and provide the available edges starting from node 1, and I'll help you choose the next node based on that.
Here is a selection of prompts I used to navigate thru the book:
- 1 -> 2. Choose a node.
- Go to node 26
- Provide a list edges starting at node 1 and ending at node 45
- 45 has no edges. Suggest a node from the list of edges for which we do not have known edges.
I was able to navigate the book thru an adventure, get a list of steps specific to that adventure and to go back and branch to a different adventure. I was not consistently succesful in getting both answers to both tasks - list the edges AND go to next node.