Blog

Llm

6 posts tagged llm — the same founder-tested patterns, filtered.

RubyLLM in Rails: Chat, Tools, Streaming

RubyLLM in Rails: Chat, Tools, Streaming

Add LLM chat to Rails with RubyLLM: one API for OpenAI, Claude, and Ollama, acts_as_chat persistence, tool calling, streaming into Turbo, and real trade-offs.
Ruby Fibers for LLM Streaming in Rails

Ruby Fibers for LLM Streaming in Rails

LLM responses stream for 30 seconds while a Rails thread waits. The arithmetic of Puma threads vs open SSE streams, and when Falcon's fibers earn the switch.
Multi-Agent LLM Pipelines in Rails

Multi-Agent LLM Pipelines in Rails

Our production multi-agent LLM pipeline in Rails: eight RubyLLM agents on a 21-line base class, a 16-line loop, and the deploy that starved the database pool.
Evaluating LLM Agents in Rails

Evaluating LLM Agents in Rails

How a Rails team knows whether its LLM agents still work: bounded schemas at the boundary, and a per-iteration audit trail you can read a month later.
Cost Optimization for LLM Applications: Managing Token Budgets and Scaling Efficiently

Cost Optimization for LLM Applications: Managing Token Budgets and Scaling Efficiently

Learn proven strategies to reduce LLM costs substantially through token management, caching optimization, prompt engineering, and smart model selection. Practical examples with cost tracking included.
Working with LLMs in Ruby on Rails: A Simple Guide

Working with LLMs in Ruby on Rails: A Simple Guide

Build AI features in Rails with LLMs. Step-by-step integration guide for OpenAI, Claude, and local models. Production code examples for Ruby developers ✓

Reading this because something is going wrong?

A free code audit gives you a written assessment of your codebase in plain English.

Get a Free Code Audit

Rated 4.8/5 on Clutch · you keep the write-up either way