DSPyOutline · dspy · Python 3.10+
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
5 small wins to finish your pathNext lesson

Signatures: describing a task

A signature declares a task's inputs and outputs instead of hand-writing a prompt.

Outline
This lesson is an outline of what it will teach. The full lesson, with code you can run, is being written.

What this lesson covers

  • Inputs and outputs as fields
  • Modules that use a signature
  • Why this beats a long prompt string

Why it matters

Describing the task lets the framework improve how it is asked.

Little by little, you're building something great.