Dspy Bootstrap Rs

Optimize few-shot demos for a DSPy program by searching over multiple candidate demo sets using dspy.BootstrapFewShotWithRandomSearch. Use when basic BootstrapFewShot is not enough and you want better results at the cost of more LM calls. Common scenarios - BootstrapFewShot alone is not reaching target accuracy, you want to search over multiple candidate demo sets and pick the best, optimizing for tasks where example selection matters a lot, or you have compute budget for a more thorough search. Also used for random search over demonstrations, search for optimal few-shot examples, brute force demo selection, try many demo combinations, more compute for better demos, upgrade from BootstrapFewShot, intermediate optimizer between simple and MIPROv2, when basic few-shot optimization is not enough, explore demonstration space.

lebsral 65db699 5 files · 33.4 KB Updated

File contents

lebsral/DSPy-Programming-not-prompting-LMs-skills/tree/main/skills/dspy-bootstrap-rs commit 65db6990a1

Frequently asked questions

npx skillmds@latest add lebsral/dspy-bootstrap-rs