Rails RAG: Build a Production Retrieval Augmented Generation System with Claude and pgvector
Rails RAG guide: build a production retrieval augmented generation pipeline with pgvector, Claude and streaming. Real code, real chunking, real tradeoffs.
Insights on software development, Rails, AI, and technology
Rails RAG guide: build a production retrieval augmented generation pipeline with pgvector, Claude and streaming. Real code, real chunking, real tradeoffs.
Postgres autovacuum tuning for Rails in production. Stop table bloat, prevent transaction ID wraparound and tame lock storms with practical settings.
Rails Solid Queue in production: Postgres-backed background jobs, configuration, concurrency, scheduled tasks, and when to stay on Sidekiq instead.
Rails Postgres JSONB in production: query patterns, GIN indexes, store_accessor, safe migrations, and when to choose JSONB over normalized Rails tables.
Rails full-text search with pg_search: tsvector indexes, ranked results, trigram similarity, and why Postgres replaces Elasticsearch for most apps.
Rails Active Storage S3 direct uploads: image variants, background processing, presigned URLs, virus scanning and a complete production configuration.
Rails webhook processing done right: HMAC signature verification, idempotent handlers, Stripe and GitHub examples, background jobs and error recovery.
Ship Rails features safely with feature flags. Flipper setup, custom Redis flags, percentage rollouts, CI/CD integration, testing strategies and common pitfalls.
A fractional CTO's practical framework for the first 30 days taking over someone else's Rails app. Where to look, what to fix, how to write an honest assessment.
Function calling lets LLMs invoke your Rails code directly. Here's how to build reliable tool-use integrations that hold up in production.
Most Rails apps eventually hit Postgres connection exhaustion. Here's how to configure PgBouncer correctly—and the transaction-mode gotchas that will bite you.
Before you acquire a company or sign on as fractional CTO, here's the Rails codebase audit I run every time — and what the findings usually mean.
Let's discuss how we can help you build or modernize your Rails application with 19+ years of expertise
Schedule a Free Consultation