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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file promptimizer-0.1.0.tar.gz.

File metadata

  • Download URL: promptimizer-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.17 Windows/10

File hashes

Hashes for promptimizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3751014582647dc3a43ebc94cf2e9cbb6374a3de88eca6e74fcce4714be8efd
MD5 447e487f0e2488cec743eda65aa04314
BLAKE2b-256 06d5f3de5224a3d2d5269ea5a88dea05d31d46874d0932201bf92722a59bc211

See more details on using hashes here.

File details

Details for the file promptimizer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: promptimizer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.17 Windows/10

File hashes

Hashes for promptimizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e5700de409c2f44b6d777d75933728473058e1e2c9bb01e026c3cf5a3bf2120
MD5 c59d7cd99c85d665d3c2997fb0a48476
BLAKE2b-256 100c037764029b839e8d87270a9ff98c511f508bf21714aee75847c64dd08b9c

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