Metadata-Version: 2.1
Name: prompt_autotune
Version: 0.4.0
Summary: A light weight library that takes in a `task description` and a `prompt` and tunes the prompt to perform better.
Home-page: https://github.com/ChinmayShrivastava/prompt-autotune
Author: Chinmay Shrivastava
Author-email: cshrivastava99@gmail.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: llama_index==0.10.20
Requires-Dist: python-dotenv

# 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

```bash
pip install prompt-autotune
```

## Usage

### Basic usage

1. Import and initialize TunePrompt

```python
from prompt_autotune import TunePrompt
tuner = TunePrompt(
    task = "your task here",
    prompt = "your prompt here",
    verbose = True # makes it log updates
)
```

2. Call it as a function, the tuner will prompt you through the process through the command line

```python
tuner()
```

3. Once finished, access your tuned prompt

```python
new_prompt = tuner.prompt
```

### Command Line Tool

1. Type the command and press enter.

```bash
tune
```

2. Follow through the process.


3. The final prompt will be printed on the console.

Enjoy!
