Part 1Retrieval & RAG
Designing a RAG System for 10 Million Documents
How to size, build and measure retrieval-augmented generation over 10M documents: ingestion, hybrid retrieval, reranking, ACLs, cost and evals.

New series · LLM System Design
25 in-depth articles on retrieval, evaluation, agents, serving, security and operations. Each one gives you the design, the numbers that size it, the ways it fails, and the sources to check.
Three articles that cover the ground most LLM products stand on.
Part 1Retrieval & RAG
How to size, build and measure retrieval-augmented generation over 10M documents: ingestion, hybrid retrieval, reranking, ACLs, cost and evals.
Part 6Cost, Latency & Serving
How to stack prompt caching, model routing, batch APIs and token hygiene into a 70-80% cost cut, with an eval gate that proves quality held.
Part 25Production Engineering
Back-of-envelope sizing, architecture and overload strategy for an LLM chat product at 1M DAU, where GPUs set both the cost and the latency.
Seven areas you need to get right before an LLM feature is ready for real traffic.
Chunking, hybrid search, reranking and debugging retrieval-augmented generation.
Make LLM systems cheaper and faster: caching, routing, batching and GPU serving.
Reliable tool calling, agent loops, long-term memory and structured output.
Eval suites, LLM-as-a-judge and keeping hallucinations in check.
Defend agents against prompt injection and keep personal data away from models.
When to fine-tune instead of prompting or RAG, and how to do it with LoRA.
Streaming, tracing, safe rollbacks and running chat for millions of users.
Twenty-five deep dives on building production LLM systems, from retrieval and evaluation to serving, security and operations.