from dspy.teleprompt import LabeledFewShot, BootstrapFewShot metric = dspy.evaluate.metrics.answer_exact_match modules = { 'vanilla': vanilla, 'cot': cot, 'react': react, 'multihop': multihop, } optimizers = { 'none': None, 'labeled_few_shot': LabeledFewShot(), 'bootstrap_few_shot': BootstrapFewShot(metric=metric, max_errors=20), }