
Making My RAG App Cheaper Without Making It Wrong
Cost per question, a cache I turned off, and a model router that fixed one answer and broke another

Cost per question, a cache I turned off, and a model router that fixed one answer and broke another
Metrics that see past HTTP 200, guardrails that don't trust the model, and an evaluation that gates every pull request

Hardened containers, Kubernetes that enforces its own rules, and CI that deploys without a single stored key

I built a LangGraph agent to fix one failing question. The evaluation said it worked. The traces said otherwise. Then a stronger model followed a prompt injection.

I built an evaluation set for my RAG system, found one failing question type, and measured three fixes one at a time. Plus two bugs in my own evaluation.

Seven hypotheses, each tested with SQL: ligatures in 88% of chunks, page headers, link lists posing as guidance, and two theories I had to throw away

Budgets that actually fire, an IAM role that can call three models and nothing else, keyless CLI access, and the quota surprise nobody warned me about

FastAPI + Ollama + ChromaDB, no cloud calls: what I learned building the smallest RAG service I could, and the gaps I'm fixing next

TL;DR If your GitHub Actions deploy to AWS fails with Not authorized to perform sts:AssumeRoleWithWebIdentity on a repository created after 15 July 2026, check the sub claim before anything else. New
