Metadata-Version: 2.1
Name: promptimizer
Version: 0.1.0
Summary: An elegant LLM prompt optimizer and prompt builder.
Home-page: https://github.com/Undertone0809/promptimizer
License: MIT
Author: Zeeland
Author-email: zeeland@foxmail.com
Requires-Python: >=3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: promptulate (>=1.7.2,<2.0.0)
Requires-Dist: questionary (>=2.0.1,<3.0.0)
Project-URL: Repository, https://github.com/Undertone0809/promptimizer
Description-Content-Type: text/markdown

# Promptimizer

Promptimizer is "prompt" + "optimizer", which is a prompt optimizer. It aims to build the high-quality LLM prompts for everyone. It can build and optimize an elegant prompt for you.

We use structured prompt templates to guide LLM in building an efficient prompt that can more accurately output the answers users want.

![usage.png](./docs%2Fimages%2Fusage.png)

# Setup

## Pip (Method1 Recommend)

Open terminal and enter the following command.

```shell
pip install promptimizer
```

Using following command to open client.

```text
promptimizer
```

## Git Clone (Method2)

Clone repo to local.

```shell
git clone https://github.com/Undertone0809/promptimizer
```

Install all relevant packages.

```shell
pip install poetry
poetry install 
```

Copy `.env.example` rename it as `.env`, saving it to the root directory of the current project. Fill in your openai key in `.env`.

```text
OPENAI_API_KEY=your-key
```

Run the script.

```shell
python main.py
```

