Design Podcast Recap Generation
SpotifyMachine Learning Engineer · OnsiteLast updated
This question evaluates system-design and machine-learning engineering competencies, including streaming versus batch ingestion, audio transcription and chunking, long-context retrieval and prompt/fine-tuning choices, model serving and cost-latency trade-offs, storage and indexing of transcripts and embeddings, evaluation of factual accuracy, and operational monitoring and recovery. Commonly asked to assess the ability to balance latency, throughput, cost, and accuracy in production ML pipelines, it is categorized as ML System Design and tests both conceptual understanding of trade-offs and practical application of scalable, reliable architecture.
Design a production system that generates short podcast recaps for newly published episodes. Assume the system should ingest episode audio and metadata, process episodes continuously, create high-quality summaries using modern language models, and serve the recap in the product shortly after publication.
Discuss:
- batch versus streaming ingestion,
- audio transcription and chunking,
- retrieval or context assembly for long episodes,
- prompt design or fine-tuning choices,
- model serving, latency, throughput, and cost trade-offs,
- storage and indexing of transcripts, embeddings, and summaries,
- evaluation of factual accuracy and summary quality,
- monitoring, fallback paths, and human review,
- infrastructure concerns such as partitioning, backfills, retries, and failure recovery.
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.