RAG in Production
From a notebook that works to a service that keeps working: two paths, freshness, caches, budgets, cost, traces, scaling, model changes and incident drills.
A RAG system that answers well on your laptop is not yet a service. Real users ask at the same moment, documents change while they ask, a provider is slow on a Tuesday, a bill arrives, and someone asks "why did it say that?" three weeks later. This phase is about everything around retrieval and generation that decides whether the system keeps working.
You will split the system into its ingestion path and its query path, measure how stale an answer may be, cache every stage without serving wrong answers, give each stage a latency budget, work out the cost of one question by hand, log and trace what retrieval did, scale the index with shards and replicas, change the embedding model without an outage, and rehearse four incidents with runbooks. Every example is a simulation with a counter for the clock and example prices, so it runs identically in three languages.
The phase ends by turning AskDocs into a service: the two paths wired together with an answer cache, a time budget, traces and a health check, and a playbook of recipes you can copy. The Observability course (/observability) covers the general tools for logs, metrics and traces; System Design (/system-design) covers caching, sharding and replication in general. Here they are applied to retrieval.
Practise this phase
Hands-on exercises: write the code, run it, and press Check to have it tested automatically.