ML system design
ML and AI system design for interviews: recommendation and ranking, LLM serving, RAG and agents. Free to read.
ML and AI system design for interviews: recommendation and ranking, LLM serving, RAG and agents. Free to read.
15 write-ups
| Title | Difficulty |
|---|---|
| Design a Homepage Recommendation System The models behind a personalized home page of rows, for e-commerce, food delivery stores, Netflix-style titles and Spotify shelves: row generation, item ranking and page assembly. | Medium |
| Design a RAG System Answer questions over hundreds of millions of private documents with cited, grounded answers, keep the index fresh as documents change, and meet the bar for legal work. | Hard |
| Design NotebookLM Let users drop PDFs, web pages and YouTube videos into a notebook and ask questions answered only from those sources, with every claim linked to the exact passage it came from. | Medium |
| Design People You May Know Suggest people to connect with on a Facebook or LinkedIn-style network: graph and shared-context candidates, a ranker for invites that get accepted, cold start and privacy. | Medium |
| Design a Deep Research Agent An agent that plans, searches, reads hundreds of sources and writes a cited report over 5-30 minutes: the research loop, durable long-running jobs, claim-level citations, cost budgets and evals. | Hard |
| Design a Feature Store Define ML features once, compute them in batch and streaming, serve them online in milliseconds and build point-in-time correct training sets from the same definitions. | Hard |
| Design a Machine Learning Platform An internal platform where hundreds of teams label data, run experiments on shared GPUs, register models and deploy them to production endpoints, with lineage, safe rollouts and monitoring. | Hard |
| Design a Receipt and Invoice Parsing System Turn receipt photos and invoice PDFs into structured fields: OCR, layout-aware extraction, VLM fallbacks grounded in the text, calibrated confidence and a human review loop that teaches the model. | Medium |
| Design a Speech Recognition System Meeting transcription with live captions and an accurate transcript after the call: streaming vs batch ASR, speaker diarization, word timestamps, custom vocabulary and measuring WER properly. | Medium |
| Design an Image Captioning System Automatic alt text for every uploaded image: vision-language models with OCR and post context, grounding checks against hallucination, evaluation with CIDEr and blind and low-vision raters, and serving at scale. | Medium |
| Design an LLM Evaluation and Observability System Trace every LLM call, tool call and agent step, score quality offline and on live traffic with checks, LLM judges and humans, and benchmark multi-agent workflows and coding agents. | Hard |
| Design an LLM Fine-Tuning System A platform to fine-tune LLMs with SFT, LoRA and DPO: datasets, GPU jobs, checkpoints, evals and deployment, applied to code completion, domain Q&A and legal contract analysis. | Hard |
| Design an Offline Batch Inference Service Run a model, plus the user's own pre- and post-processing script, over millions of records on shared GPUs, with sharding, fair allocation, progress tracking and retries that resume work. | Medium |
| Design Glean Search and answer questions across a company's Slack, Drive, Jira, Confluence and email, showing each person only what they can open in the source app, and staying in sync with all of it. | Hard |
| Design Object Detection for Autonomous Vehicles 3D object detection for a self-driving car: camera and LiDAR fusion in bird's-eye view, a 50 ms on-vehicle budget, a data engine with auto-labelling, the long tail, and safety evaluation. | Hard |