DSPy: The framework for programming—not prompting—language models
Python
Updating docs for BootstrapFewShot (#1884)
Ali Raza69e7bde48643
diff --git a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.mdindex fe435018f..40f761196 100644--- a/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md+++ b/docs/docs/deep-dive/optimizers/bootstrap-fewshot.md@@ -100,7 +100,7 @@ This optimizer augments any necessary field even if you data doesn't have it, foIn the next section, we'll seen this process step by step but for now let's start optimizing our `CoT` module by calling the `compile` method in the optimizer:```python-cot_compiled = optimizer.compile(CoT(), trainset=trainset, valset=devset)+cot_compiled = optimizer.compile(CoT(), trainset=trainset)```Once the training is done you'll have a more optimized module that you can save or load again for use anytime: