A production ML system: data, recommendation and ranking, experiments, and a few system design problems.

8 core notes, about 32 min. 3 deep dives fold under the notes they extend.

From data to users1 core · 2 deep

Shipping an ML system: data into a model, then requests, failures and feedback

  1. An ML system, from data to usersA document search system: three loops and handoffs, then data to model, then serving5 min
  2. Data to model: the deliverable is more than a checkpointA 10:02 arrival can't feed a 10:00 sample; two 768-dim encoders may still not match5 min
  3. After deployment: requests, failures, and feedbackA 3x faster model speeds a 500 ms request only 1.67x; fallbacks, releases, feedback5 min

Recommendation and experiments3

One recommendation from candidates to feedback, and offline gains that don't ship

  1. Production ML: from a model to live resultsFrom a feed: one request, then data and experiments; retrieval, metrics and timing4 min
  2. One recommendation request: candidates, ranking, and feedback10,000 items to 20: where relevant ones are lost, and why ranking can't recover them7 min
  3. Data and experiments: why didn't offline gains reach users?Keep 1 in 10 negatives and a predicted 0.5 is really 9.09%; CTR up, new users down8 min

System design practice4 core · 1 deep

Three design problems: a feed beyond repeats, a RAG you can check, memory you can correct

  1. System design: one problem, several defensible answersFeed, cited RAG, correctable memory: build it simply, then change one condition2 min
  2. System design: reading and trade-offsNo template to memorize: the problem, data, constraints and what each choice gives up3 min
  3. Design 01: a feed that does more than repeat itself20 of a million posts in 200 ms p95: trade-offs in retrieval, diversity and fallback2 min
  4. Design 02: knowledge-base answers you can verifyEvidence must be authorized, current and sufficient; test four kinds of hard question2 min
  5. Design 03: memory that can be corrected and deletedTuesday changes to Thursday, then is deleted: what update, forget and delete each do2 min