Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show ChatGPT internal steps to user #6

Open
batpad opened this issue Apr 11, 2023 · 0 comments
Open

Show ChatGPT internal steps to user #6

batpad opened this issue Apr 11, 2023 · 0 comments

Comments

@batpad
Copy link
Member

batpad commented Apr 11, 2023

When a prompt is sent by the user, ChatGPT performs a number of steps to resolve that query:

  • Recursively calls Wikipedia to figure out getting a datetime range and location for your question
  • Calls other functions available to it to get bbox / datetime
  • Formulates the query parameters that it uses to send to STAC

We should make all these steps transparent to the user - it's useful to know how the result got processed and be able to debug when you get unexpected results.

Currently, these "Observations" and "Thoughts" are logged in the python code roughly like: https://github.com/developmentseed/labs-gpt-stac/blob/main/main.py#L132

We should compile all this data into the JSON we send down to the client, alongwith the STAC feature collection, so the frontend can show the steps followed to get the answer, including Wikipedia links, etc.

Stretch goal: have all this happen over a Websocket so the user can see the steps happening as they are performed.

cc @geohacker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant