File size: 1,458 Bytes
cacd4d0
 
 
 
 
 
e322499
cacd4d0
38577fa
cacd4d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45


---
title: Universal Prompt Optimizer
emoji: 🧬
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.1.0
app_file: app.py
pinned: false
license: mit
---
# Universal Prompt Optimizer

A powerful genetic evolutionary prompt optimization tool built with GEPA (Genetic Evolutionary Prompt Agent). Optimize your prompts using genetic algorithms with optional LLEGO crossover for faster convergence.

## Features

- 🧬 **Genetic Algorithm Optimization**: Evolve prompts through multiple iterations
- 🎯 **Multi-Model Support**: Works with OpenAI, Anthropic, Google, and custom models
- 📊 **Real-time Metrics**: Track optimization progress and improvements
- 🖼️ **Multi-modal Support**: Include images in your training examples
-**LLEGO Crossover**: Advanced genetic operations for faster convergence

## How to Use

1. **Select Model**: Choose your target LLM (GPT-4, Claude, Gemini, or custom)
2. **Enter Seed Prompt**: Describe your task, constraints, and desired output format
3. **Add Training Examples**: Provide input/output pairs (images optional)
4. **Configure Optimization**: Set evolution rounds, batch size, and enable LLEGO
5. **Start Optimization**: Watch as the genetic algorithm evolves your prompt

## API Keys

API keys are stored in-session only and never logged. You can provide them in the UI or set them as environment variables:

- `OPENAI_API_KEY`
- `ANTHROPIC_API_KEY`
- `GOOGLE_API_KEY`

## License

MIT License