DSPy: The framework for programming—not prompting—language models
Python
2
Omar Khattab5ade1c3231b8
diff --git a/docs/building-blocks/2-modules.md b/docs/building-blocks/2-modules.mdindex 96a7c708e..00502096c 100644--- a/docs/building-blocks/2-modules.md+++ b/docs/building-blocks/2-modules.md@@ -15,25 +15,5 @@ A **DSPy module** is a building block for programs that use LMs.## How do I use a built-in module?-Let's start with the most fundamental module, `dspy.Predict`. Internally, all other DSPy modules are just built using `dspy.Predict`.-We'll assume you are already at least a little familiar with [DSPy signatures], which are declarative specs for defining the behavior of any module we use in DSPy.-To use a module, we first **declare** it by giving it a signature. Then we **call** the module with the input arguments, and extract the output fields!--```python-sentence = "it's a charming and often affecting journey." # example from the SST-2 dataset.--# 1) Declare with a signature.-classify = dspy.Predict('sentence -> sentiment')--# 2) Call with input argument(s).-response = classify(sentence=sentence)--# 3) Access the output.-print(response.sentiment)-```-**Output:**-```text-Positive-```