DSPy: The framework for programming—not prompting—language models
Python
link fix and output field addition
Herumb Shandilyaa895775e546a
diff --git a/docs/docs/building-blocks/1-language_models.md b/docs/docs/building-blocks/1-language_models.mdindex 8f5cf21d0..a1bffdf62 100644--- a/docs/docs/building-blocks/1-language_models.md+++ b/docs/docs/building-blocks/1-language_models.md@@ -156,4 +156,12 @@ fact_checking = dspy.ChainOfThought('claims -> verdicts')fact_checking(claims=["Python was released in 1991.", "Python is a compiled language."])```+**Output:**+```text+Prediction(+ reasoning='The first claim states that "Python was released in 1991," which is true. Python was indeed first released by Guido van Rossum in February 1991. The second claim states that "Python is a compiled language." This is false; Python is primarily an interpreted language, although it can be compiled to bytecode, it is not considered a compiled language in the traditional sense like C or Java.',+ verdicts=[True, False]+)+```+## Defining Custom Adapters\ No newline at end of filediff --git a/docs/docs/cheatsheet.md b/docs/docs/cheatsheet.mdindex 40b968834..d6fef8b13 100644--- a/docs/docs/cheatsheet.md+++ b/docs/docs/cheatsheet.md@@ -304,7 +304,7 @@ loaded_program.load(path=save_path)### BootstrapFewShotWithRandomSearch-Detailed documentation on BootstrapFewShotWithRandomSearch can be found [here](deep-dive/optimizers/bootstrap-fewshot.mdx).+Detailed documentation on BootstrapFewShotWithRandomSearch can be found [here](/docs/deep-dive/optimizers/bootstrap-fewshot.mdx).```python@@ -361,7 +361,7 @@ for p in finetune_program.predictors():### COPRO-Detailed documentation on COPRO can be found [here](deep-dive/optimizers/copro.mdx).+Detailed documentation on COPRO can be found [here](/docs/deep-dive/optimizers/copro.mdx).```python@@ -389,7 +389,7 @@ compiled_program_optimized_bayesian_signature = teleprompter.compile(your_dspy_p### MIPROv2-Note: detailed documentation can be found [here](deep-dive/optimizers/miprov2.md). `MIPROv2` is the latest extension of `MIPRO` which includes updates such as (1) improvements to instruction proposal and (2) more efficient search with minibatching.+Note: detailed documentation can be found [here](/docs/deep-dive/optimizers/miprov2.md). `MIPROv2` is the latest extension of `MIPRO` which includes updates such as (1) improvements to instruction proposal and (2) more efficient search with minibatching.#### Optimizing with MIPROv2```python