TemplateIntermediateScore 88
Examples in DSPy
Prompt example extracted from DSPy Examples.
GPT-5ClaudeGemini
Prompt
Your prompt
Examples in DSPy Working in DSPy involves training sets, development sets, and test sets. This is like traditional ML, but you usually need far fewer labels (or zero labels) to use DSPy effectively. The core data type for data in DSPy is `Example`. You will use **Examples** to represent items in your training set and test set. DSPy **Examples** are similar to Python `dict`s but have a few useful utilities. Your DSPy modules will return values of the type `Prediction`, which is a special sub-class of `Example`.
