← All projects
Project record1 mention
Originally shared on Hacker News

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.

Last shared For Rubyists who want to design and optimize prompts and reuse LLM pipelines without leaving Ruby
01 / The problem

What it addresses

DSPy existed in Python but was missing from the Ruby ecosystem.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. 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.