KatInterview

Building a City-Specific Sports News Feed with LLM Summaries

Machine LearningModel answer
MediumModel answerMachine Learningml-system-designragnlp

Last updated

Design an ML system that ingests sports content, generates grounded summaries for local audiences, and personalizes delivery at scale.

Problem Statement

You're building a mobile application that delivers customized sports news digests to users based on their location and interests. The system needs to consume content from thousands of sources, create coherent summaries combining multiple articles, and serve personalized feeds to users.

Core Requirements

Your system must:

  1. Content Pipeline: Continuously ingest sports articles from diverse sources (news APIs, RSS feeds, social platforms) and process them for relevance to specific cities and teams.

  2. Search and Retrieval: Implement a retrieval strategy that handles both specific queries (player names, team identifiers) and broader semantic matching (understanding user intent).

  3. Summary Generation: Produce concise digests that synthesize information from multiple sources while maintaining accurate attribution to original articles.

  4. Accuracy Guarantees: Ensure generated content remains factually grounded in source material without introducing unsupported claims.

  5. User Adaptation: Present content ordered by relevance to individual users based on their team preferences and engagement patterns.

System Constraints

  • Content sources: 10,000+ publishers
  • Peak load: 50,000 requests/minute during major events
  • Performance targets: retrieval within 500ms, complete summaries within 3 seconds
  • Users follow multiple teams across different cities

Expected Output

Provide:

  • System architecture showing ingestion, storage, retrieval, and generation components
  • Schema design for content and user data
  • Strategy for measuring retrieval quality and generation accuracy
  • Approach to handling time-sensitive content during live events and graceful degradation when generation services are overwhelmed

Hints

Hint 1

Think about whether summaries should be generated per-user or can be shared across users viewing the same content

Hint 2

Consider how to make location filtering reliable rather than depending solely on semantic understanding

Hint 3

Layer multiple validation techniques to catch different types of factual errors in generated text