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.2.tar.gz (6.5 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.2-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: promptvibe-0.1.2.tar.gz
  • Upload date:
  • Size: 6.5 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.2.tar.gz
Algorithm Hash digest
SHA256 ea0b8641fd3e1ece3c4a0c127937697183339ae4bde4c2e2b4378fc3f25fed0c
MD5 f8fbf4aca58416c7a6683f1ee71985ba
BLAKE2b-256 7cda23c828e014b7e86296c032d769387bbe3c09f91bfe73ab8c66387dddf053

See more details on using hashes here.

File details

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

File metadata

  • Download URL: promptvibe-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ac42096dbdee096aa99f6c01b7d48ae7541a3a869ff44949a47aa3a3160e5fe
MD5 7f63365534c4367abbf112b483663859
BLAKE2b-256 a4afe0e1636352d820594a4b29c73d2428eb90c53c7f22cb3bb4d67e7d70a05c

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