Skip to content

Commit b5d1df6

Browse files
committed
corrections after code review
1 parent bd2bbd7 commit b5d1df6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/api/modules/ChainOfThought.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ChainOfThought(Predict):
2626

2727
**Parameters:**
2828
- `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`.
3030
- `activated` (_bool_, _optional_): Flag for activated chain of thought processing. Defaults to `True`.
3131
- `**config` (_dict_): Additional configuration parameters for model.
3232

@@ -62,7 +62,7 @@ print(f"Question: {question}")
6262
print(f"Predicted Answer: {pred.answer}")
6363
```
6464

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.
6666

6767
```python
6868
#define a custom rationale

docs/api/modules/ChainOfThoughtWithHint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ChainOfThoughtWithHint(Predict):
2424

2525
**Parameters:**
2626
- `signature` (_Any_): Signature of predictive model.
27-
- `rationale_type` (_dsp.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.
27+
- `rationale_type` (_dspy.OutputField_, _optional_): Rationale type for reasoning steps. Defaults to `None`.
2828
- `activated` (_bool_, _optional_): Flag for activated chain of thought processing. Defaults to `True`.
2929
- `**config` (_dict_): Additional configuration parameters for model.
3030

0 commit comments

Comments
 (0)