Probing chatgpt
Project description
gptprobe
Example:
from gptprobe.private_setenv import NOTHING # See below
question = """What was the result of the 2018 FIFA World Cup final, as a python dict. Do not include anything
except the dict in your answer. One key/value for each team/score."""
d = ask_for_dict(question=question)
print(d)
The result is a Python dictionary:
{'France': 4, 'Croatia': 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 help yourself to three keys and inject them as follows:
import os
os.environ['OPEN_AI_KEY_0'] = 'sk-ekOvFjAHKETQYADDAYADDA'
os.environ['OPEN_AI_KEY_1'] = 'sk-ekOvFjAHKETQYADDAYADDADO'
os.environ['OPEN_AI_KEY_2'] = 'sk-ekOvFjAHKETQYADDAYADDADOO'
Maybe you want to mimic gptprobe/public_setenv.py and import NOTHING from it.
User Guide
Troubleshooting
File an issue. Pull requests are welcomed.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gptprobe-0.1.2.tar.gz
.
File metadata
- Download URL: gptprobe-0.1.2.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8954f747c1c7d6480145da4207198a7828e6a882bc7bfd70086b540dea5413bd |
|
MD5 | 2a94e6bc0b82273d746476b3a94797fe |
|
BLAKE2b-256 | 68b17367075d8f905ee454ec34a1081c909347e503dbecb8af206f972009afcf |
File details
Details for the file gptprobe-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: gptprobe-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b4861ca00bf8b99d4ccdf31ace7f38ca7295c208b82e52081c6189df8c89112 |
|
MD5 | eaed8c246f710cf5c5b5ba9929ba6ab2 |
|
BLAKE2b-256 | 1ecf79527130acb763c126b4dc70dc566be66b97ab57e00d692dc4e0f1819fd2 |