You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/modules/ChainOfThought.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ class ChainOfThought(Predict):
26
26
27
27
**Parameters:**
28
28
-`signature` (_Any_): Signature of predictive model.
29
-
-`rationale_type` (_dsp.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.
29
+
-`rationale_type` (_dspy.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.
30
30
-`activated` (_bool_, _optional_): Flag for activated chain of thought processing. Defaults to `True`.
31
31
-`**config` (_dict_): Additional configuration parameters for model.
32
32
@@ -62,7 +62,7 @@ print(f"Question: {question}")
62
62
print(f"Predicted Answer: {pred.answer}")
63
63
```
64
64
65
-
The following example shows how to specify your custom rationale.
65
+
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.
0 commit comments