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.
8 write-ups
| Title | Difficulty |
|---|---|
| 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 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 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-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 |