A recommendation model can score well offline and still fail in a product. The candidate set may miss what a user wants, features may arrive an hour later than they did in training, or the user may leave before the request finishes. This series uses a recommendation feed to connect models, data, services, and experiments.

Production ML means keeping a machine-learning system useful on real requests, with a way to inspect and improve its results. Training is one part; data updates, releases, monitoring, and recovery matter too. All examples use invented small systems, not any company's internal implementation.

Choose a starting point

In one lineNewcomers start with one request and the data chapter; model builders with time, releases and slices; design practice with the latency budget.

What you want to understand Suggested order Try this afterward
You know models but not the whole product One recommendation request → Data and experiments Draw the request path and feedback path, naming what each stage hands off
You have built models and want to check overlooked details Time consistency → Release versions → Experiment slices Propose a cause of an offline gain becoming an online loss, then a check that distinguishes it
You want implementation or system-design practice Request budget → Small experiment → Capacity and failures Add timeouts, fallbacks, and rollback rather than drawing only the successful path

For vector similarity, start with dual-encoder retrieval. To connect probability, loss, and training, use linear models to neural networks. You do not need to study every language-model architecture first.

Three questions for a first pass

In one lineRanking cannot recover what retrieval missed, higher offline AUC is not a better product, and a shared feature table can still leak late data into training.

Question A tempting mistake How we work through it
How do retrieval and ranking work together? A stronger ranker can recover items that were never retrieved Track the same candidate funnel and count what each stage loses
Which metric establishes a product improvement? Higher offline AUC or overall click-through rate is enough to launch Separate model quality, online behavior, and service quality, then examine user slices
Do training and serving have the same information? Reading the same feature table prevents skew Compare event time, availability time, transformation versions, and actual serving logs

For example, an action occurs at 09:58 but reaches the online feature store at 10:04. Using it to train a prediction made at 10:00 gives training information that serving did not have. A better ranker does not fix that mismatch. The data chapter works through the timestamps.

Continue into the existing notes

In one lineThis series connects the system; derivations and implementations stay in the existing notes. Bring one concrete question to each.

This series connects the system. Detailed derivations and implementations of individual components remain in their existing chapters.

Component Read next Question to bring
Candidate generation Dual encoders · Vector indexes What can be precomputed? How does candidate count affect cost and coverage?
Ranking and reranking One recommendation request What does the score predict, and which constraints still apply after scoring?
Features and training Data to model · What data teaches When does each feature or label become available?
Evaluation Data and experiments · Comparisons and slices What changed in the comparison? Who is poorly represented by the aggregate?
Releases and feedback Serving and feedback Can features, indexes, and configuration roll back with the model?

Who owns each part?

In one lineKnowing the whole path is not doing it all. It is knowing what happens when input is missing, who stops mismatched versions and how a fix is proven.

Data, modeling, infrastructure, and product work often belong to different people. Understanding the whole path does not mean implementing everything yourself. It means knowing what happens when an input is missing, who rejects incompatible versions, who investigates an unhealthy metric, and what evidence confirms a fix.

The AI Infra route continues below the same product: why requests queue, why replicas do not absorb traffic immediately, and how training and serving share resources.