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.
6 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 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 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 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 |