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.
12 write-ups
| Title | Difficulty |
|---|---|
| Design a Bot and Spam Detection System Catch bot accounts and spam posts on a social platform in real time with a cascade of rules, behavior models and text classifiers, while adversaries adapt and real users stay unharmed. | Medium |
| Design a Coding Agent like Claude Code An agent that reads, edits and runs code: the harness loop and its tools, permissions, context in big repos, cloud sandboxes, and a pipeline that turns failing tests into bugs and fix PRs. | Hard |
| 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 an ML Fraud Detection System Train and serve models that catch payment fraud and account takeovers in under 100 ms, despite labels that arrive months late, extreme class imbalance and fraudsters who adapt. | Hard |
| Design a Browser Agent A multimodal agent that operates a real browser: screenshots vs DOM, the action space, sandboxed browser fleets, prompt injection from pages, and confirmations before consequential actions. | Hard |
| Design a Personal AI Assistant Agent An assistant that reads and acts on email, calendar and tasks: least-privilege OAuth scopes, approvals before side effects, background follow-ups, user-controlled memory, and handling health data. | Medium |
| Design a Text-to-Image Generation System A Midjourney-style image generator: latent diffusion with classifier-free guidance, prompt rewriting, layered safety filters, GPU queueing by tier, and evaluation with FID, CLIP score and human preference. | Hard |
| Design a Text-to-Speech Service An ElevenLabs-style speech API: text normalization, codec language models and vocoders, streaming synthesis under 300 ms, prosody control, voice cloning with consent, MOS evaluation and audio watermarking. | Medium |
| Design a Text-to-Video Generation System A Sora-style video generator: spatiotemporal diffusion over a compressed video latent, the arithmetic of cost per second, long-running multi-GPU jobs, temporal consistency, and safety and provenance. | Hard |
| Design an Agent for Incident Root Cause Analysis An agent that investigates alerts across logs, metrics, traces and deploys, ranks root causes with evidence, and proposes fixes that run only behind deterministic controls and human approval. | Hard |
| Design an Agentic System A platform for running production LLM agents: the agent loop, a tool layer with real permissions, durable state and memory, guardrails and PII handling, multi-agent designs, evals and cost. | 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 |