dspy.rb
A composable, type-safe Ruby port of DSPy for designing and optimizing prompts and reusing LLM pipelines. It supports defining structured modules, instrumenting them in Langfuse, wiring them up like functional components, and experimenting with signature optimization, all in plain Ruby.
What it addresses
DSPy existed in Python but was missing from the Ruby ecosystem.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
dspy.rb
A composable, type-safe Ruby port of DSPy for designing and optimizing prompts and reusing LLM pipelines. It supports defining structured modules, instrumenting them in Langfuse, wiring them up like functional components, and experimenting with signature optimization, all in plain Ruby.
Problem: DSPy existed in Python but was missing from the Ruby ecosystem.
Audience: Rubyists who want to design and optimize prompts and reuse LLM pipelines without leaving Ruby
Posted by @vicentereig · Original source ↗
Source text · @vicentereig · · Source ↗
So I started https://github.com/vicentereig/dspy.rb: a composable, type-safe version built for Rubyists who want to design and optimize prompts, and reuse LLM pipelines without leaving their language of choice.