Skip to main content

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

gptprobe-0.1.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

gptprobe-0.1.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file gptprobe-0.1.1.tar.gz.

File metadata

  • Download URL: gptprobe-0.1.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for gptprobe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a02be4855013f001b492aa8532b29e2b1ec94a1b3c55658efc6abae1ec98e94
MD5 4acf95adebc175a29345bdb49fb0066c
BLAKE2b-256 6f623a25afdec095e2d53cc8d79b561f7b03a6c18ec393240a0d8e45bf83436e

See more details on using hashes here.

File details

Details for the file gptprobe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gptprobe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for gptprobe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0bf68170dc548c93bdd974f2f84fb9f1f1f108b7998bb251417aa9ea0ffcde4
MD5 bfa8df002bd3479dbf78f5a35afd30b3
BLAKE2b-256 11ec8c938d28bdf44be7c989c590ce6f64d22fd5d8052a7522393efad4519135

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page