Skip to main content

Probing chatgpt

Project description

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 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 and import NOTHING from it in your scripts.

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.5.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

gptprobe-0.1.5-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gptprobe-0.1.5.tar.gz
  • Upload date:
  • Size: 14.3 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.5.tar.gz
Algorithm Hash digest
SHA256 0121e179054bb2a7322fa79cae70a5ac5b798a60dbcdcd9fa04fa7651de0b562
MD5 58cf0d485e009deb9ba50837dc85613c
BLAKE2b-256 a6d238c456984ad39640a7246364feb3a8f5d149047b80593ff0ea45f01ec5e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gptprobe-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 76f2b7274e4a9df57aeb470987b2ad94ba702013365c2bd1b50dd6f7fc8b6440
MD5 e7ce24de11c8170de1f2f67b8d23f90b
BLAKE2b-256 0eac3118fb69ce7759458403f6e82c7f81dc1898aaf3df5577d64275371d3737

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