Getting Started with DSPy.rb

DSPy.rb lets Ruby applications declare typed inputs and outputs for language-model calls. Choose one route based on what you need now.

Run Your First Program

Follow the Quick Start to install the gems, configure OpenAI, save the example, and run it.

Choose a Provider or Package

Use Installation to select and configure a provider adapter. Use the package and capability matrix when you need exact package status, require behavior, or capability boundaries.

Continue After the Quick Start

Read Core Concepts to choose signatures, predictors, modules, examples, and tools. Move to evaluation, optimization, and production guides when your application reaches those tasks.