KatInterview

Building a Recommendation Engine for New Users and Fresh Content

Machine LearningModel answer
HardModel answerMachine Learningrecommendation systemscold startmachine learning

Last updated

Design a video recommendation system that handles users with no history and videos with no engagement data while meeting strict latency requirements.

Problem: Recommendation System for New Users and Content

You're building a recommendation service for a short-form video platform entering a new market vertical. The system faces two fundamental challenges: a large fraction of users arrive with zero interaction history, and you continuously ingest fresh videos that have never been shown to anyone.

System Requirements

Functional goals:

  • Deliver personalized video recommendations for each user session, regardless of historical data availability
  • Support both brand-new users (no profile) and established users viewing new content

Performance constraints:

  • Response time: under 200ms per request
  • New videos must become recommendable within minutes of upload
  • User feedback from the current session should influence recommendations immediately (next page load)

Scale parameters:

  • 10 million daily active users
  • 50,000 video uploads per day
  • Typical user generates 5 sessions daily with ~10 recommendation requests per session

Design Components to Address

Your design should cover:

  1. Candidate retrieval: How do you find relevant videos when you can't use "users who watched X also watched Y" signals?

  2. Feature representation: What attributes can you extract from videos and users to measure relevance when interaction data is sparse or missing?

  3. Scoring and ranking: How do you balance showing proven high-quality content against giving new uploads a chance to find their audience?

  4. Real-time learning: How do you use the first few interactions in a session to adjust recommendations before the session ends?

Describe your architecture at a systems level and discuss the trade-offs between response speed, recommendation quality, and implementation complexity.

Hints

Hint 1

Consider what you can learn about a video from its content alone—visual features, audio, text metadata—before anyone watches it

Hint 2

For new users, think about what weak signals you have: device type, location, signup source, or topics they selected during onboarding

Hint 3

Exploration isn't random guessing—you can use content similarity to make educated guesses about what a new video's engagement rate will be

Hint 4

Session state can be maintained in a fast in-memory store and used to re-query your retrieval system without waiting for model retraining