Learning in Drublic

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

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 async telemetry system provides real-time visibility into your LLM workflows without the complexity

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

Features 10 min read

CodeAct: When Your AI Writes Ruby Code

Deep dive into DSPy.rb's unique CodeAct module for dynamic code generation. Discover how to build AI agents that write their own Ruby code to solve 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