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.pyindex 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 InputFieldfrom 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 chatadapter 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.pyindex 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)