Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

slight docs fix

Omar Khattab0c7395e237e5
diff --git a/docs/docs/learn/programming/signatures.md b/docs/docs/learn/programming/signatures.md
index aa47236f0..9b9955ede 100644
--- a/docs/docs/learn/programming/signatures.md
+++ b/docs/docs/learn/programming/signatures.md
@@ -36,8 +36,11 @@ You can also add instructions to your inline signature, which can use variables
```python
toxicity = dspy.Predict(
- 'comment -> toxic: bool',
- instructions="Mark as 'toxic' if the comment includes insults, harassment, or sarcastic derogatory remarks.")
+ dspy.Signature(
+ "comment -> toxic: bool",
+ instructions="Mark as 'toxic' if the comment includes insults, harassment, or sarcastic derogatory remarks.",
+ )
+)
```
### Example A: Sentiment Classification