Skip to content

Details

Part of our ongoing DSPy Mastery Series.

This session covers DSPy signatures — the declarative way to tell a language model what you want without writing prompts. Instead of crafting prompt strings, you specify input→output contracts like "question → answer" and let DSPy figure out the rest.

We'll cover:

  • Declarative vs imperative: specify "what" not "how"
  • Why field names matter semantically ("question" vs "query" vs "prompt")
  • Adding type hints, descriptions, and constraints
  • Building complex tasks from simple signature compositions

Ryan Freckleton presenting. Includes hands-on demos with code you can run.

This is Session 3 in the DSPy series. Prior sessions covered LM Setup and Data Collection. No prerequisite knowledge required — just bring Python experience and curiosity.

You may also like