Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

docs: fix duplicate 'the the' typos across docs, source, and tests (#9641)

Abhishek Krishnaae477fa2e697
diff --git a/docs/docs/api/optimizers/GEPA/overview.md b/docs/docs/api/optimizers/GEPA/overview.md
index fbb77acac..b9f3cd66a 100644
--- a/docs/docs/api/optimizers/GEPA/overview.md
+++ b/docs/docs/api/optimizers/GEPA/overview.md
@@ -83,7 +83,7 @@ Rather than evolving just the _best_ global candidate (which leads to local opti
### Algorithm Summary
-1. **Initialize** the candidate pool with the the unoptimized program.
+1. **Initialize** the candidate pool with the unoptimized program.
2. **Iterate**:
- **Sample a candidate** (from Pareto frontier).
- **Sample a minibatch** from the train set.
diff --git a/dspy/adapters/chat_adapter.py b/dspy/adapters/chat_adapter.py
index e94199fee..016c885d6 100644
--- a/dspy/adapters/chat_adapter.py
+++ b/dspy/adapters/chat_adapter.py
@@ -249,7 +249,7 @@ class ChatAdapter(Adapter):
"""
Formats the values of the specified fields according to the field's DSPy type (input or output),
annotation (e.g. str, int, etc.), and the type of the value itself. Joins the formatted values
- into a single string, which is is a multiline string if there are multiple fields.
+ into a single string, which is a multiline string if there are multiple fields.
Args:
fields_with_values: A dictionary mapping information about a field to its corresponding
diff --git a/dspy/teleprompt/bootstrap_finetune.py b/dspy/teleprompt/bootstrap_finetune.py
index 6a431e355..f43d806ea 100644
--- a/dspy/teleprompt/bootstrap_finetune.py
+++ b/dspy/teleprompt/bootstrap_finetune.py
@@ -284,7 +284,7 @@ def assert_structural_equivalency(program1: object, program2: object):
num1 = len(program1.predictors())
num2 = len(program2.predictors())
- err = f"Structurally equivalent programs must have the the number of predictors. The number of predictors for the two modules do not match: {num1} != {num2}"
+ err = f"Structurally equivalent programs must have the same number of predictors. The number of predictors for the two modules do not match: {num1} != {num2}"
assert num1 == num2, err
pzip = zip(program1.named_predictors(), program2.named_predictors(), strict=False)
diff --git a/tests/reliability/utils.py b/tests/reliability/utils.py
index 3dfe9fba7..ce1156fa8 100644
--- a/tests/reliability/utils.py
+++ b/tests/reliability/utils.py
@@ -65,7 +65,7 @@ def known_failing_models(models: list[str]):
@contextmanager
def judge_dspy_configuration(**extra_judge_config):
"""
- Context manager to temporarily configure the DSPy to use the the judge model
+ Context manager to temporarily configure DSPy to use the judge model
from `reliability_conf.yaml`.
Args: