📄️ BootstrapFewShot
When compiling a DSPy program, we generally invoke a teleprompter, which is an optimizer that takes the program, a training set, and a metric—and returns a new optimized program. Different teleprompters apply different strategies for optimization. This family of teleprompters is focused on optimizing the few shot examples. Let's take an example of a Sample pipeline and see how we can use teleprompter to optimizes it.
📄️ LabeledFewShot
Constructor
📄️ BootstrapFewShotWithRandomSearch
BootstrapFewShotWithRandomSearch is an teleprompter that extends BootstrapFewShot by incorporating a random search strategy to optimize the selection of few-shot examples. This teleprompter is useful when you want to explore a variety of example combinations to find the best examples for your model.
📄️ teleprompt.BootstrapFinetune
Constructor
📄️ teleprompt.Ensemble
Constructor
📄️ COPRO
COPRO which aims to improve the output prefixes and instruction of the signatures in a module in a zero/few shot setting. This teleprompter is especially beneficial for fine-tuning the prompt for language models and ensure they perform tasks more effectively, all from a vague and unrefined prompt.
📄️ MIPROv2 Optimizer
Table of Contents