Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Convert Rationale to Reasoning for broken tests

Herumb Shandilyab7c375257718
diff --git a/dspy/functional/functional.py b/dspy/functional/functional.py
index cf2fe6977..648d52bef 100644
--- a/dspy/functional/functional.py
+++ b/dspy/functional/functional.py
@@ -59,7 +59,7 @@ def TypedChainOfThought(signature, instructions=None, rationale_type=None, *, ma
output_keys = ", ".join(signature.output_fields.keys())
DEFAULT_RATIONALE = dspy.OutputField(
- prefix="Rationale: Let's think step by step in order to",
+ prefix="Reasoning: Let's think step by step in order to",
desc="${produce the " + output_keys + "}. We ...",
)
rationale_type = rationale_type or DEFAULT_RATIONALE