#AI

Engineering AI Discover

Engineering AI Discover
01

Summary

Inside Netflix’s Intelligence Layer: How LLMs Power TV Recommendations

Architecting a plan-and-execute agent harness for real-time steerable discovery at scale

Netflix's 'AI Discover' transforms content discovery from passive browsing into an interactive experience where members steer themes directly on their TVs. To operate LLMs at Netflix scale, the engineering team built a dedicated intelligence layer behind the TV app. This post details how they decoupled planning from execution, modularized core recommendation systems into verifiable capabilities, and built asynchronous pipelines to balance quality, safety, and performance.

  • 01Adopted a plan-and-execute agent pattern to validate step-by-step execution graphs prior to running any LLM calls
  • 02Built a first-class asynchronous page generation pipeline to manage multi-second generative latencies while maintaining instant TV UI responses
  • 03Introduced Memory Hub and MemberLLM to pre-compute member taste summaries off the critical request path
  • 04Transformed legacy search, catalog metadata, and ranking engines into composable, semantic 'Capabilities'
  • 05Enforced content rating and maturity safety rules deterministically in code rather than relying on probabilistic prompt instructions

RECOMMENDATION

Essential reading for backend architects and AI engineers looking to integrate LLMs into high-throughput production systems. It provides practical lessons on managing latency, enforcing governance, and modularizing legacy microservices for AI orchestration.

The Problem

Netflix aimed to introduce an interactive, AI-driven discovery experience (AI Discover) on TV devices, facing the challenge of integrating slow, unpredictable LLMs into traditional recommendation engines without compromising latency, reliability, or content safety.

The Solution

They implemented an intelligence layer functioning as a plan-and-execute agent harness (consisting of a Controller and an Executor) that pre-validates request plans and asynchronously orchestrates LLMs alongside existing catalog recommendation and ranking systems.

The Result

The architecture maintains instant UI responsiveness for TV remote navigation while reliably serving personalized, steerable recommendations that strictly comply with catalog availability and maturity ratings.

Trade-off

To eliminate LLM latency spikes and hallucination risks, open-ended text chat was constrained to UI theme selections, and multi-step generative execution required introducing asynchronous state indicators for members during multi-second wait times.

03

Key Concepts

Concept · 01

Intelligence Layer (Agent Harness)

A middleware layer that decides how to combine LLMs with existing recommendation, retrieval, and ranking microservices for every request.

  • Composed of a Controller (context gathering and plan validation) and an Executor (parallel, deadline-enforced step execution).
Concept · 02

Plan-and-Execute Pattern

An agent architecture where an LLM drafts an execution plan graph upfront, which code then validates and executes deterministically.

  • Prevents unbounded agent loops and enables graceful fallbacks to pre-tested plan templates when latency spikes or validation fails.
Concept · 03

Memory Hub & MemberLLM

A low-latency persistent memory infrastructure paired with an in-house LLM that maintains up-to-date member taste profiles and preferences.

  • Generates member taste summaries ahead of time, removing heavy LLM profile computation off the synchronous request path.