DSPy: The framework for programming—not prompting—language models
Python
Update assertions.py error msg
arnavsinghvi1157cb297146fc
diff --git a/dspy/primitives/assertions.py b/dspy/primitives/assertions.pyindex 5c8d04ef5..4ddea6760 100644--- a/dspy/primitives/assertions.py+++ b/dspy/primitives/assertions.py@@ -248,7 +248,7 @@ def backtrack_handler(func, bypass_suggest=True, max_backtracks=2):dspy.settings.backtrack_to = dsp.settings.trace[-1][0]if dspy.settings.backtrack_to is None:- dspy.logger.error("Module not found in trace. If passing a DSPy Signature, please specify the intended module for the assertion (e.g., use `dspy.ChainOfThought(GenerateAnswer)` instead of `GenerateAnswer`).")+ dspy.logger.error("Module not found in trace. If passing a DSPy Signature, please specify the intended module for the assertion (e.g., use `target_module = self.my_module(my_signature)` instead of `target_module = my_signature`).")# save unique feedback message for predictorif error_msg not in dspy.settings.predictor_feedbacks.setdefault(