dspy-better-together
Installation
SKILL.md
DSPy BetterTogether
Goal
Sequence prompt and weight optimizers, evaluate intermediate programs, and return the best candidate.
Prerequisites
- Use DSPy
3.2.1or later in the stable3.2.xseries. - Assign an LM directly to every predictor with
student.set_lm(lm). - Keep a validation set, or allow
BetterTogetherto hold out part of the trainset. - Confirm the LM provider supports fine-tuning before including
BootstrapFinetune.
Basic Pattern
import dspy