
A build that cannot be judged is a demo with users. This lecture wires Lecture 11's golden set into a gate that can block a deploy: hit@1, hit@3 and MRR for ranking quality, abstention accuracy on the three questions the corpus cannot answer, and a deterministic groundedness checker that verifies every quoted sentence exists verbatim in one of the chunks the answer cites. The baseline board is perfect — 1.000 across all five numbers, 17 quotes checked — and then the lecture breaks the system on purpose: a rushed 40-token-window chunker goes in, abstention collapses from 1.000 to 0.667, and the gate goes red. That red board is the product. Thresholds are set from the baseline — headroom where headroom is safe, held at the measured value where it is not — never from hope, and the gate exits 0 for ship, 1 for blocked. AI disclosure: this course's narration uses a cloned voice of the instructor, created with the instructor's consent; all content, code, and curriculum are authored and verified by the instructor team. Music: "Frozen Star" by Kevin MacLeod (incompetech.com) — CC BY 4.0
The three levers from Lecture 5, run in pipeline order on Lecture 14's measured fixture — each one's savings read off the board, none asserted. Compression kills the doubled verbose preamble: 213 tokens become 39, fixture cost falls 39.2%. The cache is the lecture's centrepiece: two earlier versions of it were wrong in instructive ways (a word-set similarity that ate the whole workload, a key built from parts every request shares), and the shipped version keys on each request's payload with its threshold examined on screen — true duplicates score 0.935 and above, but distinct requests reach 1.000: the ranges overlap, no gap exists, and the board prints what the 117 hits are actually made of (40 planted near-duplicates, 2 verbatim repeats, 75 fuzzy same-kind matches). Result: 117 hits among 189 cacheable requests, a 61.9% hit rate, cost down to $0.1187. The cascade then routes what remains — 114 of 123 served requests to the small tier — for a cumulative 94.6% reduction. Personalised drafts are never cached, on principle. Lecture 16 exists because none of this ships until quality is proven. AI disclosure: this course's narration uses a cloned voice of the instructor, created with the instructor's consent; all content, code, and curriculum are authored and verified by the instructor team. Music: "Frozen Star" by Kevin MacLeod (incompetech.com) — CC BY 4.0
Savings claims are cheap; signed boards are not. This lecture re-runs Lecture 15's compression + cache + cascade pipeline end-to-end and adds the quality guard the cascade was betting on: a deterministic keyword classifier stands in for the small tier, and its agreement with the recorded gold labels is measured on the 36 classification requests the cascade actually routes to it — the cache answers the other 31 classify rows before any tier sees them, and the rag and draft requests the length rule sends small are printed on the board as unmeasured, not silently covered by the agreement number. Low-confidence cases escalate to the flagship tier instead of guessing. The signed board: $479.66 a month becomes $25.91, a 94.6% reduction, with the quality gate at 95% passed — and the lecture states plainly what the board does not prove, including why agreement reads 1.000 on this fixture and what would make it fall on real traffic. The board is written to board.json, where Lecture 18's ShipGate will read it as the cost gate. AI disclosure: this course's narration uses a cloned voice of the instructor, created with the instructor's consent; all content, code, and curriculum are authored and verified by the instructor team. Music: "Frozen Star" by Kevin MacLeod (incompetech.com) — CC BY 4.0
This course contains the use of artificial intelligence.
Your LLM demo works. Your production system is where it goes to die — in the latency tail your users feel, in a bill nobody measured, in an eval set that drifted away from real traffic, in an injection attack a user pastes in on a Friday. This course is the engineering between the demo and the system that survives: serving and inference, prompts as code, latency and cost engineering, reliability ladders, context budgets, evaluation with golden sets and CI gates, observability, and guardrails — every topic taught as a measurement or a build, never as a slideware claim.
The core ten lectures map the whole discipline: the four forces that kill LLM products (latency, cost, reliability, drift); hosted APIs versus self-hosting, decided with numbers; prompts under version control with structured outputs; latency engineering — streaming, caching, and the tails that matter more than the average; token economics and cascades; retries, fallbacks and circuit breakers; context budgets, memory and fresh RAG; evaluation with golden sets, judges and CI gates; traces and injection defence; and the deployment architecture that assembles it all.
Then you build three production systems. Project 1: AnswerDesk, a RAG service over a real corpus — designed by contract and census, built with citation-bound answers and abstention guards that took three measured calibration rounds to get honest, and shipped behind an evals gate that can block its own deploy. Project 2: the Optimization Lab — a 240-request workload measured to the token with a real tokenizer, then compressed, cached and cascaded from $479.66 to $25.91 a month (94.6% down) behind a quality gate that had to pass before the savings counted. Project 3: ShipGate — structured traces for every request, a 12-attack injection battery refused 12/12 with zero false refusals, PII masked before it ever reaches a log, and a five-gate ship board you will watch fail three different ways on purpose.
Then you crack the interview. Four system-design lectures with the arithmetic done live: a chatbot that survives launch day (40 requests/second becomes $1,656 per peak hour — then gets rescued, honestly), RAG at ten million documents (twenty billion tokens become five hundred gigabytes of vectors — then get designed down), cutting inference cost 10× with measured lever factors, and a five-move playbook with a ten-question rapid-fire drawn from the whole course.
Every number in this course was produced by running the system on screen — census counts, ranking scores, gate boards, cost figures. Nothing is asserted from memory, and where a board is a fixture's property rather than a law of nature, the lecture says so. You also get downloadable code and exercise books, six checkpoint quizzes with a 70% mastery rule, five hands-on assignments with worked solutions, and a capstone: ship your own production LLM service behind your own ship gate.
AI disclosure: this course's narration uses a cloned voice of the instructor, created with the instructor's consent; all content, code, and curriculum are authored and verified by the instructor team. Music: "Frozen Star" by Kevin MacLeod — CC BY 4.0.