Skip to main content

Optimize the user prompt

Project description

🚀 PromptVibe

PromptVibe is a lightweight Gradio-powered UI tool that helps you optimize LLM prompts using DSPy as the backend. Just upload your golden dataset (questions and answers in Excel), provide your current prompt, and select the optimization technique — PromptVibe will generate top N optimized prompts based on evaluation metrics.


🌟 Features

  • 🔄 Upload Excel dataset with question and answer columns
  • 🧠 Choose from multiple prompt types: Predict, ReAct, or ChainOfThought
  • 🛠️ Optimize using DSPy methods:
    • BootstrapFewShot
    • BootstrapFewShotWithRandomSearch
  • 🎯 Get top-N optimized prompts using answer exact match metric
  • 🔐 Secure API key entry for OpenAI models

🧩 How It Works

  1. Upload an Excel file with question and answer columns.
  2. Enter your existing ("old") prompt.
  3. Choose optimization method and prompt type.
  4. Enter the number of top prompts to retrieve.
  5. Provide your OpenAI model name (e.g., gpt-3.5-turbo) and API key.
  6. View the optimized prompts generated using DSPy’s optimization engine.

📁 Excel File Format

Your Excel file must contain the following columns:

question answer
What is AI? AI is Artificial Intelligence.
How does GPT work? GPT uses transformer architecture.

🛠️ Installation

python -m venv venv 

pip install PromptVibe 

promptvibe

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

promptvibe-0.1.3.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptvibe-0.1.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file promptvibe-0.1.3.tar.gz.

File metadata

  • Download URL: promptvibe-0.1.3.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.1 Linux/6.8.0-1027-azure

File hashes

Hashes for promptvibe-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64b1d404dad63eb71d2826ca3ac3f30d4606f626d4551b2a67df123c760147f2
MD5 cc4817a8eb11bc3f25dc3027adf8e8af
BLAKE2b-256 86e30e750e7e448c9150b23fd3bdb416adc581394094edf45437b01710ea44f9

See more details on using hashes here.

File details

Details for the file promptvibe-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: promptvibe-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.1 Linux/6.8.0-1027-azure

File hashes

Hashes for promptvibe-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 32dc649798777042b540c71ef75553f8f36dcd290184ad0c6fad7ef4c2fff96f
MD5 19ce17f20012dcf18d6d86bb391636fe
BLAKE2b-256 f7768b71dad8b6fb914427f9226a44f8b8a56638fb4f8273883afb3408a514c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page