Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Fix typo in comment in dspy/teleprompt/bettertogether.py (#8236)

Earl St Sauver7b325ad37530
diff --git a/dspy/adapters/two_step_adapter.py b/dspy/adapters/two_step_adapter.py
index a27a9de85..9ee91458f 100644
--- a/dspy/adapters/two_step_adapter.py
+++ b/dspy/adapters/two_step_adapter.py
@@ -8,7 +8,7 @@ from dspy.signatures.field import InputField
from dspy.signatures.signature import Signature, make_signature
"""
-NOTE/TODO/FIMXE:
+NOTE/TODO/FIXME:
The main issue below is that the second step's signature is entirely created on the fly and is invoked with a chat
adapter explicitly constructed with no demonstrations. This means that it cannot "learn" or get optimized.
diff --git a/dspy/teleprompt/bettertogether.py b/dspy/teleprompt/bettertogether.py
index 6737c9ca6..50bc022ff 100644
--- a/dspy/teleprompt/bettertogether.py
+++ b/dspy/teleprompt/bettertogether.py
@@ -139,7 +139,7 @@ class BetterTogether(Teleprompter):
# predictor.lm attributes. In particular,
# BootstrapFewShotWithRandomSearch seems to be resetting these. We are
# manually re-setting the LMs here to circumvent this issue, but we
- # should consider adressing it in BFRS.
+ # should consider addressing it in BFRS.
logger.info("Compiling the prompt optimizer...")
pred_lms = [pred.lm for pred in student.predictors()]
student = self.prompt_optimizer.compile(student, trainset=prompt_trainset, valset=prompt_valset)