AI product

DSPy

DSPy is a framework for defining language-model program contracts—inputs, output schemas, and scoring functions—so prompt and instruction optimization becomes a search problem. In the described workflow, it searches for shorter instructions while preserving the application's interface and evaluation contract, with candidate changes checked through repeated model runs, shadow evaluation, and human review of disagreements.

Visit site Mentioned in 4 videos ↓

What DSPy is used for

4 uses taken from transcripts — each links to the moment in the video.

  • Framework for defining the interface contract (inputs, output schema, scoring function) so prompts become a search problem

  • Framework where you declare program constraints and it uses the GEPA genetic algorithm to optimize prompts, finding a prompt that lets cheaper models like Mistral satisfy the spec.

  • Framework for feeding contract page images through to highly structured output, preserving chart data and enforcing prescriptive reconciliation workflows

    unverified AI Engineer
  • The framework in which Weitekamp made his first RDM implementation, as a DSPy module; the Compound AI team quickly added support for System One API calls within DSPy.

Videos mentioning DSPy

4 in the library.