Skip to main content

An elegant LLM prompt optimizer and prompt builder.

Project description

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

Setup

Pip (Method1 Recommend)

Open terminal and enter the following command.

pip install promptimizer

Using following command to open client.

promptimizer

Git Clone (Method2)

Clone repo to local.

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

Install all relevant packages.

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.

OPENAI_API_KEY=your-key

Run the script.

python main.py

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

promptimizer-0.1.0.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

promptimizer-0.1.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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