dspy
dspy copied to clipboard
fix (mipro): enable running mipro using only labeled demos
Enable performing mipro prompt optimization while only using labeled demos. Here, bootstrapped demos are solely used for the meta-prompt to enhance the final prompt.
Before fix:
- max_bootstrapped_demos = 0 and
- max_labeled_demos > 0
mipro optimizer raises ValueError: "No examples found for the given predictor"