DSPy: The framework for programming—not prompting—language models
Python
docs: fix duplicate-word typos ("are are", "with with") (#9695)
Gopal Bagaswar253dbb799fe3
diff --git a/docs/docs/deep-dive/data-handling/loading-custom-data.md b/docs/docs/deep-dive/data-handling/loading-custom-data.mdindex 09a10e6e5..f19d4880f 100644--- a/docs/docs/deep-dive/data-handling/loading-custom-data.md+++ b/docs/docs/deep-dive/data-handling/loading-custom-data.md@@ -6,7 +6,7 @@ sidebar_position: 3# Creating a Custom Dataset-We've seen how to work with with `Example` objects and use the `HotPotQA` class to load the HuggingFace HotPotQA dataset as a list of `Example` objects. But in production, such structured datasets are rare. Instead, you'll find yourself working on a custom dataset and might question: how do I create my own dataset or what format should it be?+We've seen how to work with `Example` objects and use the `HotPotQA` class to load the HuggingFace HotPotQA dataset as a list of `Example` objects. But in production, such structured datasets are rare. Instead, you'll find yourself working on a custom dataset and might question: how do I create my own dataset or what format should it be?In DSPy, your dataset is a list of `Examples`, which we can accomplish in two ways:diff --git a/dspy/teleprompt/bootstrap_finetune.py b/dspy/teleprompt/bootstrap_finetune.pyindex f43d806ea..e0b87676a 100644--- a/dspy/teleprompt/bootstrap_finetune.py+++ b/dspy/teleprompt/bootstrap_finetune.py@@ -269,7 +269,7 @@ def prepare_teacher(student: Module, teacher: Module | None = None) -> Module:if teacher is None:return student- # Ensuring that the student and teacher are are structurally equivalent+ # Ensuring that the student and teacher are structurally equivalentassert_structural_equivalency(student, teacher)# Ensuring that the student and teacher programs do not share predictors