AI SYSTEM DESIGN · LEARNING PATH
Design reliable AI systems end to end.
Start with the product decision and non-AI baseline. Then design the data, retrieval, models, tools, safety, evaluation and operations needed for a reliable AI product.
26 AI and ML foundation chapters available · 13 available complete worked-design chapters. The seven introductory lessons remain available separately. Independent chapter review is pending.
Start the interview orientation →Choose a guided learning path
Each path is a curated sequence through chapters that are already published. Open any chapter directly; unavailable prerequisites do not block access.
Applied AI Engineer
Build AI applications with retrieval, agents, evaluation and production safety.
18 published steps · follow in order or jump to any chapter
- LLMs, transformers and token generation →
- Context windows and context engineering →
- Prompt contracts, structured outputs and tool calling →
- Embedding spaces, similarity and model compatibility →
- RAG ingestion, chunking and index lifecycle →
- Hybrid retrieval, reranking and grounded evidence →
- Streaming, cancellation and backpressure →
- Model routing, fallbacks and unit economics →
- AI runtime observability and SLOs →
- Embeddings and representation contracts →
- Candidate retrieval and ANN indexes →
- Retrieval and ranking evaluation →
- Customer-support RAG →
- Permission-aware enterprise RAG →
- AI coding assistant with repository context and safe tool execution →
- Agent workflow platform →
- LLM evaluation and feedback platform →
- Production AI safety, security and governance →
ML Engineer / Applied ML
Build sound data, representation, modeling, evaluation and serving foundations.
16 published steps · follow in order or jump to any chapter
- Frame the decision and non-ML baseline →
- Events, identity and data contracts →
- Labels, delayed outcomes and human annotation →
- Leakage, splits and evaluation contamination →
- Sampling, imbalance and observation bias →
- Embeddings and representation contracts →
- Candidate retrieval and ANN indexes →
- Ranking, reranking and multi-stage systems →
- Classification and rare-event evaluation →
- Retrieval and ranking evaluation →
- Calibration, uncertainty and decision thresholds →
- Slices, fairness and harm-aware decisions →
- Training-serving consistency →
- Video recommendations →
- Content moderation →
- Feature platform →
AI Platform / Staff Engineer
Design multi-tenant inference, durable agent execution, governance and platform operations.
8 published steps · follow in order or jump to any chapter
Foundations and design problems
87 matching topics
MLF-001 · foundation · Framing and data · Available · independent review pending
Frame the decision and non-ML baseline →
Define user action, prediction unit, target horizon, product outcome and guardrails.
Read the existing introduction →MLF-002 · foundation · Framing and data · Planned
Probability, statistics and optimization essentials
Use conditional probability, uncertainty, gradients and loss interpretation only where they affect a design.
The full chapter has not been published.
MLF-003 · foundation · Framing and data · Planned
Task families and label semantics
Distinguish classification, regression, ranking, retrieval, forecasting and generation.
The full chapter has not been published.
MLF-004 · foundation · Framing and data · Available · independent review pending
Events, identity and data contracts →
Define keys, event/ingestion/availability times, schema evolution, dedupe and permitted use.
MLF-005 · foundation · Framing and data · Available · independent review pending
Labels, delayed outcomes and human annotation →
Define label windows, maturity, censoring, annotation policy and disagreement.
MLF-006 · foundation · Framing and data · Available · independent review pending
Leakage, splits and evaluation contamination →
Prevent future information, entity overlap, preprocessing leakage and test-set reuse.
Read the existing introduction →MLF-007 · foundation · Framing and data · Available · independent review pending
Sampling, imbalance and observation bias →
Explain selection/exposure bias, negatives, weighting and what sampling changes.
MLF-008 · foundation · Features and models · Planned
Feature engineering and transformations
Create numeric/categorical/text features, defaults and fitted transformations without leaking validation data.
The full chapter has not been published.
MLF-009 · foundation · Features and models · Available · independent review pending
Point-in-time joins and feature availability →
Use both event-time and actual availability when reconstructing historical decisions.
MLF-010 · foundation · Features and models · Available · independent review pending
Feature platforms and freshness contracts →
Separate batch/stream/offline/online responsibilities and justify a feature store only when needed.
MLF-011 · foundation · Features and models · Planned
Non-ML and simple learned baselines
Establish a deployable baseline before a complex model and keep comparisons controlled.
The full chapter has not been published.
MLF-012 · foundation · Features and models · Planned
Linear models, trees and boosting trade-offs
Compare tabular model families by quality, calibration, serving cost and maintainability.
The full chapter has not been published.
MLF-013 · foundation · Features and models · Planned
Deep models and sequence context
Justify neural/sequence architectures from data/task structure and resource constraints.
The full chapter has not been published.
MLF-014 · foundation · Retrieval and ranking · Available · independent review pending
Embeddings and representation contracts →
Define embedding training objective, normalization, dimension and model/index compatibility.
Read the existing introduction →MLF-015 · foundation · Retrieval and ranking · Available · independent review pending
Candidate retrieval and ANN indexes →
Separate eligible-corpus recall from latency/memory and filtering effects.
MLF-016 · foundation · Retrieval and ranking · Available · independent review pending
Ranking, reranking and multi-stage systems →
Bound candidate sets, score/rerank and apply policy without confusing retrieval with ranking.
MLF-017 · foundation · Retrieval and ranking · Planned
Losses, negative sampling and multi-objective learning
Connect objectives and negative construction to the action and deployment distribution.
The full chapter has not been published.
MLF-018 · foundation · Training and evaluation · Planned
Training pipelines and orchestration
Own validated data snapshots, retries, checkpoints, lineage and budgeted work.
The full chapter has not been published.
MLF-019 · foundation · Training and evaluation · Planned
Reproducibility and experiment tracking
Record data/code/config/environment/seeds/artifacts and distinguish replayability from bitwise determinism.
The full chapter has not been published.
MLF-020 · foundation · Training and evaluation · Available · independent review pending
Classification and rare-event evaluation →
Define confusion counts, precision/recall, PR/ROC metrics, slices and threshold trade-offs.
Read the existing introduction →MLF-021 · foundation · Training and evaluation · Available · independent review pending
Retrieval and ranking evaluation →
Define recall/precision at K, MRR, DCG/NDCG, relevance labels and query/user weighting.
MLF-022 · foundation · Training and evaluation · Planned
Regression and forecasting evaluation
Match MAE/RMSE/quantile/interval metrics to horizon and error costs; backtest over time.
The full chapter has not been published.
MLF-023 · foundation · Training and evaluation · Available · independent review pending
Calibration, uncertainty and decision thresholds →
Distinguish score quality from calibrated probabilities, uncertainty and action capacity.
MLF-024 · foundation · Training and evaluation · Planned
Online experiments and causal limits
Specify randomization unit, exposure, guardrails, SRM, delayed outcomes and interference.
The full chapter has not been published.
MLF-025 · foundation · Training and evaluation · Available · independent review pending
Slices, fairness and harm-aware decisions →
Define relevant slices and competing error costs without claiming one metric certifies fairness.
MLF-026 · foundation · Serving and operations · Available · independent review pending
Training-serving consistency →
Version feature/transform/model contracts and compare training versus serving behavior.
MLF-027 · foundation · Serving and operations · Planned
Batch, online, stream and edge inference
Choose execution mode from freshness, latency, connectivity and cost needs.
The full chapter has not been published.
MLF-028 · foundation · Serving and operations · Planned
Serving latency, throughput and capacity
Budget tail latency, queueing, batching, replicas, model loading and dependency failures.
The full chapter has not been published.
MLF-029 · foundation · Serving and operations · Planned
Registry, validation, rollout and rollback
Promote compatible artifact bundles through checks, shadow/canary and rollback gates.
The full chapter has not been published.
MLF-030 · foundation · Serving and operations · Planned
Observability and operational response
Separate system, data, model, product and decision-policy signals with owners and runbooks.
The full chapter has not been published.
MLF-031 · foundation · Serving and operations · Planned
Drift, retraining and feedback loops
Distinguish covariate/label/concept changes and investigate before retraining.
The full chapter has not been published.
MLF-032 · foundation · Serving and operations · Available · independent review pending
Governance, privacy, lineage and deletion →
Trace permitted data use through snapshots, features, indexes and artifacts; define deletion obligations.
MLF-033 · foundation · Advanced design · Planned
Compute, memory and unit economics
Estimate feature, retrieval, training and inference costs with clear units and assumptions.
The full chapter has not been published.
MLF-034 · foundation · Advanced design · Planned
Cold start, exposure and recommender feedback
Handle new users/items and interactions shaped by previous decisions.
The full chapter has not been published.
MLF-035 · foundation · Advanced design · Available · independent review pending
Adversaries, human review and appeals →
Model abuse adaptation, review capacity, policy changes and disagreement.
MLF-036 · foundation · Advanced design · Planned
RAG and generative-system evaluation
Separate retrieval, grounding, generation, tool/action and safety evaluation.
The full chapter has not been published.
MLF-037 · foundation · Advanced design · Planned
Compression, distillation and deployment optimization
Trade model size/precision/latency against quality and compatibility using measured checks.
The full chapter has not been published.
MLF-038 · foundation · Advanced design · Planned
Bandits, exploration and counterfactual caveats
Explain exploration, propensities and support/variance limits without treating logs as randomized truth.
The full chapter has not been published.
MLF-039 · foundation · Advanced design · Planned
Multimodal and streaming context
Align modality/time boundaries, missing signals and streaming evaluation.
The full chapter has not been published.
MLF-040 · foundation · Advanced design · Planned
ML system-design interview framework
Connect decision, data, model, evaluation, architecture, operation and trade-off narrative.
The full chapter has not been published.
AIF-001 · foundation · Generative AI foundations · Available · independent review pending
LLMs, transformers and token generation →
Build a useful mental model of tokenization, transformer blocks, self-attention and autoregressive generation.
AIF-002 · foundation · Generative AI foundations · Available · independent review pending
Context windows and context engineering →
Construct bounded, relevant and permission-safe context from instructions, conversation state, retrieved evidence and tool results.
AIF-003 · foundation · Generative AI foundations · Available · independent review pending
Prompt contracts, structured outputs and tool calling →
Separate trusted instructions from untrusted data, validate structured outputs and keep tool authority in application code.
AIF-004 · foundation · Retrieval and knowledge systems · Available · independent review pending
Embedding spaces, similarity and model compatibility →
Choose a task-appropriate embedding contract, understand vector similarity and migrate model/index generations without mixing incompatible spaces.
AIF-005 · foundation · Retrieval and knowledge systems · Available · independent review pending
RAG ingestion, chunking and index lifecycle →
Turn existing and changing source systems into provenance-preserving, permission-aware, versioned searchable evidence.
AIF-006 · foundation · Retrieval and knowledge systems · Available · independent review pending
Hybrid retrieval, reranking and grounded evidence →
Combine dense and lexical retrieval, fuse candidates, enforce permissions, rerank bounded evidence and evaluate grounded answers.
MLSD-001 · problem · Discovery and ranking · Available · independent review pending
Video recommendations →
Choose a bounded set of eligible videos for a user/context.
Read the existing introduction →MLSD-002 · problem · Discovery and ranking · Planned
Home feed ranking
Order eligible social items with freshness and policy constraints.
The full chapter has not been published.
MLSD-003 · problem · Discovery and ranking · Planned
E-commerce recommendations
Recommend in-stock eligible items in a shopping context.
The full chapter has not been published.
MLSD-004 · problem · Discovery and ranking · Planned
Job matching
Rank suitable jobs/candidates within declared eligibility constraints.
The full chapter has not been published.
MLSD-005 · problem · Discovery and ranking · Planned
Ad click prediction and ranking
Estimate click propensity for eligible ad opportunities.
The full chapter has not been published.
MLSD-006 · problem · Discovery and ranking · Planned
Search ranking
Rank relevant eligible documents for a query.
The full chapter has not been published.
MLSD-007 · problem · Discovery and ranking · Planned
Semantic product search
Retrieve semantically relevant products under stock and catalog restrictions.
The full chapter has not been published.
MLSD-008 · problem · Discovery and ranking · Planned
Visual search
Find visually related eligible items from an image query.
The full chapter has not been published.
MLSD-009 · problem · Trust and safety · Available · independent review pending
Content moderation →
Allow, review or restrict content under a versioned policy.
Read the existing introduction →MLSD-010 · problem · Trust and safety · Planned
Bot detection
Choose a graduated response to suspicious activity.
The full chapter has not been published.
Read the existing introduction →MLSD-011 · problem · Trust and safety · Planned
Transaction fraud scoring
Score a transaction for approve/review/decline within a decision budget.
The full chapter has not been published.
MLSD-012 · problem · Trust and safety · Planned
Spam classification
Route incoming messages to inbox/quarantine/review.
The full chapter has not been published.
MLSD-013 · problem · Trust and safety · Planned
Account abuse and takeover risk
Select a reversible verification action for risky account behavior.
The full chapter has not been published.
MLSD-014 · problem · Trust and safety · Planned
Near-duplicate media detection
Find duplicate/near-duplicate media for a defined review or dedupe action.
The full chapter has not been published.
MLSD-015 · problem · Forecasting and tabular decisions · Planned
ETA prediction
Predict arrival time/interval at a specified decision instant.
The full chapter has not been published.
MLSD-016 · problem · Forecasting and tabular decisions · Planned
Geographic demand forecasting
Forecast demand by region and horizon for planning.
The full chapter has not been published.
MLSD-017 · problem · Forecasting and tabular decisions · Planned
Inventory demand forecasting
Forecast item/location demand for a replenishment decision.
The full chapter has not been published.
MLSD-018 · problem · Forecasting and tabular decisions · Planned
Churn prediction and intervention
Identify a defined disengagement outcome and choose whether to intervene.
The full chapter has not been published.
MLSD-019 · problem · Forecasting and tabular decisions · Planned
Capacity and load forecasting
Forecast workload/resource demand to support bounded capacity decisions.
The full chapter has not been published.
MLSD-020 · problem · Language and generative systems · Planned
Query autocomplete
Suggest safe useful query completions while a user types.
The full chapter has not been published.
MLSD-021 · problem · Language and generative systems · Planned
Document classification and extraction
Classify documents and extract fields with confidence-based review.
The full chapter has not been published.
MLSD-022 · problem · Language and generative systems · Available · independent review pending
Customer-support RAG →
Answer support questions using an approved knowledge corpus with abstention.
MLSD-023 · problem · Language and generative systems · Available · independent review pending
Permission-aware enterprise RAG →
Answer a tenant user's question using only currently authorized, versioned document evidence.
MLSD-024 · problem · Language and generative systems · Planned
Streaming speech transcription
Produce incremental/final transcripts under latency and privacy constraints.
The full chapter has not been published.
MLSD-025 · problem · ML platforms and operations · Planned
ML anomaly alerting
Prioritize operational anomalies for investigation without overwhelming responders.
The full chapter has not been published.
MLSD-026 · problem · ML platforms and operations · Available · independent review pending
Feature platform →
Serve/reconstruct governed feature values with explicit freshness and lineage.
MLSD-027 · problem · ML platforms and operations · Planned
Training and retraining platform
Run reproducible budgeted training/validation workflows and record artifacts.
The full chapter has not been published.
MLSD-028 · problem · ML platforms and operations · Planned
Model inference platform
Serve compatible model bundles under bounded latency/cost with safe fallback.
The full chapter has not been published.
MLSD-029 · problem · ML platforms and operations · Planned
ML experimentation platform
Assign and observe controlled model/policy experiments with trustworthy analysis.
The full chapter has not been published.
MLSD-030 · problem · ML platforms and operations · Planned
Evaluation and feedback platform
Version test sets, evaluate candidates and incorporate reviewed feedback safely.
The full chapter has not been published.
AISD-001 · problem · Generative AI application architecture · Available · independent review pending
AI coding assistant with repository context and safe tool execution →
Commit-pinned code retrieval, safe patch generation, isolated validation and approval-gated repository writes.
AISD-002 · problem · Agentic AI and tool execution · Available · independent review pending
Agent workflow platform →
Durable agent orchestration with typed tools, least-privilege capabilities, approvals, idempotent side effects and replayable evaluation.
AISD-003 · problem · AI inference and platform engineering · Available · independent review pending
Multi-tenant LLM inference gateway →
Tenant-safe model routing, atomic budget admission, KV-aware serving, resumable streams and evidence-based usage settlement.
AISD-004 · worked-problem · Multimodal AI systems · Available · independent review pending
Multimodal video understanding platform →
Design temporal video/audio ingestion, multimodal retrieval and grounded timestamped answers.
AISD-005 · problem · Multimodal AI systems · Available · independent review pending
Real-time voice assistant →
Duplex audio, streaming ASR, turn management, barge-in, safe tools and streaming TTS.
AISD-006 · worked-problem · AI quality, evaluation and production governance · Available · independent review pending
LLM evaluation and feedback platform →
Versioned datasets, durable candidate replay, metric decomposition, calibrated judges, human review and evidence-based release gates.
AISD-007 · worked-problem · Multimodal AI generation and platform engineering · Available · independent review pending
Text-to-image and video generation platform →
Durable generation jobs, fair GPU scheduling, safety, artifact lifecycle, provenance and recovery.
AISD-008 · problem · Production AI security, privacy and governance · Available · independent review pending
Production AI safety, security and governance →
Defend production AI systems against direct/indirect prompt injection, data exfiltration and unsafe tools with deterministic policy, privacy controls and auditable governance.
AIF-007 · foundation · AI runtime engineering · Available · independent review pending
Streaming, cancellation and backpressure →
Design resumable ordered generation streams, cancellation fencing, bounded buffers and usage settlement.
AIF-008 · foundation · AI runtime engineering · Available · independent review pending
Model routing, fallbacks and unit economics →
Route only to eligible models, distinguish retry from fallback and optimize cost per successful task without violating quality or policy.
AIF-009 · foundation · AI runtime engineering · Available · independent review pending
AI runtime observability and SLOs →
Correlate end-to-end traces, stage latency, token usage, cost, quality and safety into actionable operational signals.