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.
11 write-ups
| Title | Difficulty |
|---|---|
| Design a Duplicate Event Detector Find events that describe the same real-world happening, created by different hosts with different words, using blocking, a pairwise match model, clustering and safe merge actions. | Medium |
| Design a Prohibited Item Detection System Keep weapons and other banned goods off a marketplace with multimodal classifiers over listing text and photos, seller signals, and a human review loop that produces the labels. | 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 an AI Shopping Assistant A chat assistant that turns "tacos for six, under $50" into a real cart: grounded catalog search, validated cart changes, multi-turn refinement, latency and cost, and the travel-booking variant. | Medium |
| Design Natural-Language Search for a Food Delivery App Search that understands "protein food under 30 min" and "spicy biryani near me": query parsing into filters, hybrid lexical and vector retrieval, context-aware ranking and dish tagging. | Medium |
| 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 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 AI Code Completion Copilot-style inline completion: fill-in-the-middle models, retrieving context from the repo, a 250 ms budget per keystroke, and acceptance and retention metrics that tell you if it helps. | Hard |
| Design an AI Search Engine like Perplexity Answer questions with a cited, up-to-date summary of the web in a few seconds, by searching, reading and synthesizing pages live, and go deeper with multi-step research when asked. | Hard |
| 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 Visual Search Search with a photo, like Pinterest Lens or Google Lens: object detection and crops, image embeddings trained with contrastive learning, ANN retrieval over billions of images, re-ranking and exact product matching. | Medium |