Build custom DSPy optimizers and track them in LangWatch
None
on the optimizer
parameter to be able to track the steps manually:
langwatch.dspy.track_metric
so that it’s tracked:
langwatch.dspy.log_step
to capture the score at the current step index, optimizer info and predictors being used on this step evaluation:
log_step
.