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
questionandanswercolumns - 🧠 Choose from multiple prompt types:
Predict,ReAct, orChainOfThought - 🛠️ Optimize using DSPy methods:
BootstrapFewShotBootstrapFewShotWithRandomSearch
- 🎯 Get top-N optimized prompts using answer exact match metric
- 🔐 Secure API key entry for OpenAI models
🧩 How It Works
- Upload an Excel file with
questionandanswercolumns. - Enter your existing ("old") prompt.
- Choose optimization method and prompt type.
- Enter the number of top prompts to retrieve.
- Provide your OpenAI model name (e.g.,
gpt-3.5-turbo) and API key. - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file promptvibe-0.2.2.tar.gz.
File metadata
- Download URL: promptvibe-0.2.2.tar.gz
- Upload date:
- Size: 7.0 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fc8c2192981667b0029275c9bb722fbef6b70f20a7a7b1190acfa3b9b49c977
|
|
| MD5 |
8d251c3ddcff88c751b9fc916f89f38e
|
|
| BLAKE2b-256 |
cb9ba369f6df0e856465a9556eeac5dbcb3370c590d8176907b4cabb37cc1934
|
File details
Details for the file promptvibe-0.2.2-py3-none-any.whl.
File metadata
- Download URL: promptvibe-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3255a58fcec6d487bbc8418f4a0a60c7c12e33caae0b4d396f54736bc6586d3
|
|
| MD5 |
666b7526ebb6f5ca9a1c3e0ddf1b9c1d
|
|
| BLAKE2b-256 |
6f65f4ee346ece9395e44852fcdf6bfa34ca662b1f341e0889dcc0f9a3443157
|