VizPy's ContraPrompt and PromptGrad optimizers outperform GEPA on every benchmark. Two lines of code. Better prompts. No DSPy lock-in required.
Each algorithm is purpose-built for its task type. No guesswork about which optimizer to use.
Mines contrastive pairs from incorrect vs. corrected attempts. Extracts separating rules that teach the model to distinguish edge cases. Best for tasks with discrete labels.
Best for: Classification, Labeling, RoutingUses epoch-based failure analysis to compute textual gradients. Accumulates correction rules across training runs. Best for tasks that produce free-form output.
Best for: Summarization, QA, Code GenerationWrite a standard DSPy module with a metric function. If you already have one, you're done here.
ContraPrompt for classification. PromptGrad for generation. Each returns an optimized version of your module with the same structure.
Every optimization produces plain-English explanations of what it changed and why. No black-box tuning.
Built by the team behind multi-objective RL at VizopsAI. Ex-DeepMind, ex-Amazon, JHU PhD research.