DSPy: The framework for programming—not prompting—language models
Python
corrections after code review
habanozb5d1df6d7b50
diff --git a/docs/api/modules/ChainOfThought.md b/docs/api/modules/ChainOfThought.mdindex 1c73657b1..9d7939283 100644--- a/docs/api/modules/ChainOfThought.md+++ b/docs/api/modules/ChainOfThought.md@@ -26,7 +26,7 @@ class ChainOfThought(Predict):**Parameters:**- `signature` (_Any_): Signature of predictive model.-- `rationale_type` (_dsp.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.+- `rationale_type` (_dspy.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.- `activated` (_bool_, _optional_): Flag for activated chain of thought processing. Defaults to `True`.- `**config` (_dict_): Additional configuration parameters for model.@@ -62,7 +62,7 @@ print(f"Question: {question}")print(f"Predicted Answer: {pred.answer}")```-The following example shows how to specify your custom rationale.+The following example shows how to specify your custom rationale. Here `answer` corresponds to the last key to produce, it may be different in your case.```python#define a custom rationalediff --git a/docs/api/modules/ChainOfThoughtWithHint.md b/docs/api/modules/ChainOfThoughtWithHint.mdindex 5236b5156..26a41814d 100644--- a/docs/api/modules/ChainOfThoughtWithHint.md+++ b/docs/api/modules/ChainOfThoughtWithHint.md@@ -24,7 +24,7 @@ class ChainOfThoughtWithHint(Predict):**Parameters:**- `signature` (_Any_): Signature of predictive model.-- `rationale_type` (_dsp.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.+- `rationale_type` (_dspy.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.- `activated` (_bool_, _optional_): Flag for activated chain of thought processing. Defaults to `True`.- `**config` (_dict_): Additional configuration parameters for model.