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.
5 write-ups
| Title | Difficulty |
|---|---|
| Design a News Feed Ranking System Rank posts from friends, pages, groups and recommendations for a Facebook or LinkedIn-style feed with a multi-task model, a tunable value model, integrity demotions and user preferences. | Hard |
| Design an Ads Ranking System Predict calibrated click and conversion probabilities for every eligible ad, turn them into auction scores and prices, and handle delayed conversions, new ads and miscalibration. | 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 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 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 |