A light weight library that takes in a `task description` and a `prompt` and tunes the prompt to perform better.
Project description
prompt-autotune
A light weight library that takes in a task description and a prompt and tunes the prompt to perform better.
Accepting any and all PRs!
Installation
pip install prompt-autotune
Usage
Basic usage
- Import and initialize TunePrompt
from prompt_autotune import TunePrompt
tuner = TunePrompt(
task = "your task here",
prompt = "your prompt here",
verbose = True # makes it log updates
)
- Call it as a function, the tuner will prompt you through the process through the command line
tuner()
- Once finished, access your tuned prompt
new_prompt = tuner.prompt
Command Line Tool
- Type the command and press enter.
tune
-
Follow through the process.
-
The final prompt will be printed on the console.
Enjoy!
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file prompt_autotune-0.4.0.tar.gz.
File metadata
- Download URL: prompt_autotune-0.4.0.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dcd764879d9f55a6bbc1f057b9bb665f6128b71861deb6ed780337fb676fa11
|
|
| MD5 |
183f9e2c2280aee7725f76338ad714d3
|
|
| BLAKE2b-256 |
25179b2e1f14839e21162ead020c744493b310e7458e0bd0345e86238d1706e7
|
File details
Details for the file prompt_autotune-0.4.0-py3-none-any.whl.
File metadata
- Download URL: prompt_autotune-0.4.0-py3-none-any.whl
- Upload date:
- Size: 19.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7dac644dd75a96c6a42789379bf6a629f334cab45212b78c288d2d6b2f683ca
|
|
| MD5 |
077c8d645a0f0cbe814ce97ca2792490
|
|
| BLAKE2b-256 |
cbc3b08876816da2ebd28bbc04c6ca8bf973b28248a4011695c7aae677a9fcab
|