https://github.com/microprediction/gptprobe
For unmanned missions into GPT returning structured data
https://github.com/microprediction/gptprobe
autogpt gpt gpt-4 gpt4-api
Last synced: 6 months ago
JSON representation
For unmanned missions into GPT returning structured data
- Host: GitHub
- URL: https://github.com/microprediction/gptprobe
- Owner: microprediction
- License: other
- Created: 2023-04-26T12:32:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T11:48:48.000Z (over 2 years ago)
- Last Synced: 2025-03-25T03:12:58.545Z (7 months ago)
- Topics: autogpt, gpt, gpt-4, gpt4-api
- Language: Python
- Homepage:
- Size: 3.72 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gptprobe
Simple example:from gptprobe.askfor.dictfrompoorlyformattedtext import ask_for_text_from_poorly_formatted_dict_text
messy_dict_text = """ Final score are
Australia 1
Brazil 2
bummer """
print(ask_for_text_from_poorly_formatted_dict_text(text = messy_dict_text))The result is:
{"Australia": "1", "Brazil": "2"}
This package contains simple and complex multi-step interrogations intended to yield structured data, including patterns where ChatGPT4 tries to
help itself out of a rut, rephrases questions, ratifies answers using a different key, tries to reformat its own responses, and so forth. It may help with your own unmanned missions into the galactic brain.# Install & environ setup
pip install gptprobe
Then from [open ai developer](https://platform.openai.com/account/api-keys) help yourself to a key and inject into environment somehow. E.g.import os
os.environ['OPEN_AI_KEY'] = 'sk-ekOvFjAHKETQYABBADABBADDAYADDA'Maybe you want to mimic [gptprobe/public_setenv.py](https://github.com/microprediction/gptprobe/blob/main/gptprobe/public_setenv.py) and import NOTHING from it in your scripts.
## User Guide
- See the [README](https://github.com/microprediction/gptprobe/blob/main/gptprobe/askfor/README.md) in the askfor directory.
- See the [examples](https://github.com/microprediction/gptprobe/tree/main/examples).
## Troubleshooting
File an [issue](https://github.com/microprediction/gptprobe/issues). Pull requests are welcomed.
