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.
9 write-ups
| Title | Difficulty |
|---|---|
| Design ChatGPT Stream model responses token by token to millions of users, survive dropped connections, store branching conversations and keep a fleet of GPUs busy but not overloaded. | Hard |
| Design ETA Prediction Predict arrival times for rides and food deliveries: a residual model on top of the routing engine, stage-by-stage delivery ETAs, live traffic and kitchen load, quantiles and serving at 600k QPS. | Hard |
| Design TikTok's Video Recommendation System The models behind a TikTok or Reels For You feed: multi-source retrieval, a multi-task ranker over watch signals, re-ranking, cold start for new videos, and training that keeps up within minutes. | Hard |
| Design a Real-Time Voice Assistant A voice agent that talks back in under a second: streaming STT, LLM and TTS, turn detection and barge-in, WebRTC and phone calls, tools mid-conversation, and running 40,000 calls at once. | Hard |
| 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 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 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 Dynamic Pricing for Ride-Sharing Surge pricing as an ML system: demand and supply forecasts per cell, price elasticity learned from confounded data, an optimizer or RL policy that sets multipliers, and switchback tests. | Hard |
| Design Real-Time Video Understanding Models that watch live video as it happens: on-device detection and tracking for 30 fps effects, and cloud stream understanding that drives auto comments, captions and highlights. | Hard |