Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Update dspy_cot.md

Tom Dörr359dac6ad89b
diff --git a/docs/api/functional/dspy_cot.md b/docs/api/functional/dspy_cot.md
index 73c140f8f..35a98ce2f 100644
--- a/docs/api/functional/dspy_cot.md
+++ b/docs/api/functional/dspy_cot.md
@@ -8,7 +8,7 @@ sidebar_position: 4
#### `def cot(func) -> dspy.Module`
-The `@cot` decorator is used to create a Chain of Thoughts module based on the provided function. It automatically generates a `dspy.TypedPredictor` and from the function's type annotations and docstring. Similar to predictor, but adds a "Reasoning" output field to capture the model's step-by-step thinking.
+The `@cot` decorator is used to create a Chain of Thoughts module based on the provided function. It automatically generates a `dspy.TypedPredictor` from the function's type annotations and docstring. Similar to predictor, but adds a "Reasoning" output field to capture the model's step-by-step thinking.
* **Input**: Function with input parameters and return type annotation.
* **Output**: A dspy.Module instance capable of making predictions.
@@ -27,4 +27,4 @@ def generate_answer(self, context: list[str], question) -> str:
pass
generate_answer(context=context, question=question)
-```
\ No newline at end of file
+```