Bootstrap Few-Shot Demonstrations
Guide the user through using dspy.BootstrapFewShot to automatically generate and select high-quality few-shot demonstrations for their DSPy program. This is the simplest optimizer and the recommended first step before trying heavier optimizers.
What is BootstrapFewShot
dspy.BootstrapFewShot takes your program, a training set, and a metric, then:
- Runs your program on each training example
- Keeps the traces (input/output pairs) where the metric p
[Description truncada. Veja o README completo no GitHub.]