dspy-optimization

Automate DSPy optimization with teleprompters, metrics, and training data.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Qredence/skill-fleet --skill dspy-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dspy-optimization
Source: https://github.com/Qredence/skill-fleet/tree/main/.skills/dspy-optimization
Command: npx skills add https://github.com/Qredence/skill-fleet --skill dspy-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dspy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

DSPy optimization automates the tuning of DSPy programs by selecting optimal teleprompters, metrics, and training data to improve performance and reliability.

Core Features & Use Cases

  • Teleprompter options include BootstrapFewShot, KNNFewShot, LabeledFewShot, MIPROv2, and GEPA to tailor prompts and demonstrations.
  • Metrics and evaluation workflows enable end-to-end optimization, comparison across configurations, and robust validation.
  • End-to-end optimization workflows support compiling, training, evaluating, and promoting high-quality DSPy programs.

Quick Start

Provide a DSPy program, select an optimizer, and supply a training set to generate an optimized, tested program.

Frequently Asked Questions about dspy-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize DSPy prompts using teleprompters?

DSPy prompt optimization automates tuning by selecting teleprompters like BootstrapFewShot, KNNFewShot, MIPROv2, and GEPA to tailor demonstrations and improve program performance using training data.

What is the best way to evaluate DSPy programs during optimization?

Evaluating DSPy programs uses custom metrics and evaluation workflows to compare configurations, validate robustness, and measure performance across end-to-end optimization runs.

Can I use MIPROv2 and GEPA together for DSPy workflow optimization?

DSPy optimization supports applying MIPROv2 and GEPA independently or across workflows to tailor prompts, compile programs, and promote high-quality results.

How do I set up end-to-end DSPy optimization workflows?

End-to-end DSPy optimization workflows require a DSPy program, a selected optimizer, and a training set to compile, train, evaluate, and promote optimized programs.

Do I need labeled training examples to run BootstrapFewShot in DSPy?

BootstrapFewShot and related teleprompters require example training sets and the DSPy library to configure and run optimizations for generating tested programs.

What are the limitations of custom metrics in DSPy evaluation?

Custom metrics in DSPy evaluation require correct configuration via repository scripts and references; improper metric setup limits robust validation and performance comparison across configurations.