Learning in Drublic

No BS AI development: practical Ruby tutorials that actually work.

Tutorial 4 min read

Let the Model Write Your Tools

Building a research agent with CodeAct where the LLM generates Ruby code on the fly

V

Vicente Reig

Fractional Engineering Lead

Agents 8 min read

Building Chat Agents with Ephemeral Memory: A Step-by-Step Guide

Learn lightweight context engineering in Ruby. We'll incrementally build a chat agent with ephemeral memory and cost-based routing—starting from the simplest possible loop and layering complexity only when needed.

V

Vicente Reig

Fractional Engineering Lead

Workflow 5 min read

Evaluator Loops in Ruby: Ship Sales Pitches with Confidence

A quick walkthrough of how to turn LLM calls into composable building blocks in Ruby. With evaluator loops, you get cheap iterations, clear critiques, and real observability into each step. Great for shipping better sales pitches without guessing what the model is doing (or overspending on tokens).

V

Vicente Reig

Fractional Engineering Lead

Workflow 4 min read

Build a Workflow Router in Ruby

Route every ticket to the right Language Model, only escalate to heavy LLMs when needed, keep every hop observable, and never touch a handwritten prompt along the way.

V

Vicente Reig

Fractional Engineering Lead

Article 3 min read

What TOON Gets That CSV Doesn’t for LLM Payloads

Token-Oriented Object Notation keeps your nested Sorbet structs intact—something flat CSV rows simply can’t do when you prompt large language models.

V

Vicente Reig Rincon de Arellano

Fractional Engineering Lead

Article 4 min read

Cut Prompt Tokens in Half with BAML + TOON

DSPy.rb now pairs BAML schemas with Sorbet::Toon payloads. The combo keeps Enhanced Prompting simple while saving ~9000 schema tokens and ~2400 data tokens per request.

V

Vicente Reig Rincon de Arellano

Fractional Engineering Lead

Article

Rich Signatures, Lean Schemas

When signatures hit 5+ fields, JSON Schema overhead eats hundreds of tokens per call. BAML keeps them compact—no retraining needed.

V

Vicente Reig Rincon de Arellano

Fractional Engineering Lead

Architecture 12 min read

DSPy.rb Concurrent Architecture: Deep Dive into 3.3x Performance Gains

An architecture designed for high throughput on a fiber-based concurrent execution model, event-driven telemetry system, and production-ready architecture delivering real performance improvements with minimal overhead.

V

Vicente Reig

Fractional Engineering Lead

Production 8 min read

Observability in Action: Langfuse Tracing

See how DSPy.rb's executor-driven telemetry keeps real-time visibility without slowing down your LLM workflows

V

Vicente Reig

Fractional Engineering Lead

Features 4 min read

Google Gemini Integration: Multimodal AI with Type-Safe Ruby

DSPy.rb v0.20.0 introduces full Google Gemini support, bringing Google's state-of-the-art multimodal AI capabilities to Ruby developers with complete type safety and structured outputs.

V

Vicente Reig

Fractional Engineering Lead

Features 3 min read

Fiber-Local LM Contexts: Clean Multi-Model Management in Ruby

DSPy.rb v0.20.0 introduces DSPy.with_lm for elegant temporary language model overrides using Ruby's fiber-local storage, enabling clean concurrent patterns and better model management.

V

Vicente Reig

Fractional Engineering Lead

Features 2 min read

Run LLMs Locally with Ollama and Type-Safe Ruby

DSPy.rb now supports Ollama, bringing type-safe structured outputs to local LLM development. Learn how to build cost-effective AI applications with zero API charges during development.

V

Vicente Reig

Fractional Engineering Lead

Article

Raw Chat API for Benchmarking and Migration

Learn how to use DSPy.rb's raw_chat API for benchmarking monolithic prompts and migrating to modular implementations

D

Vicente Reig

Fractional Engineering Lead

Research 12 min read

Program of Thought: The Missing Link Between Reasoning and Code

Deep dive into Program of Thought (PoT) - a powerful approach that separates reasoning from computation. Compare it with CodeAct and ChainOfThought to find the right tool for your AI applications.

V

Vicente Reig

Fractional Engineering Lead

Tutorial 12 min read

Building Your First ReAct Agent in Ruby

Step-by-step guide to creating tool-using AI agents with DSPy.rb. Learn how to build agents that can reason about their actions and solve complex multi-step problems.

V

Vicente Reig

Fractional Engineering Lead

Design 8 min read

Building Ruby-Idiomatic AI Applications with DSPy.rb

How DSPy.rb embraces Ruby conventions to make AI development feel natural. Learn about the design decisions that make DSPy.rb uniquely Ruby.

V

Vicente Reig

Fractional Engineering Lead