Netflix builds natural language Graph Search using LLMs and RAG to replace structured DSL query builders
Netflix's internal Graph Search platform required users to interact via a structured DSL, forcing them to learn bespoke UI components across many applications and creating bottlenecks for subject matter experts who needed to translate their intent into complex queries.
The naive approach of providing all index metadata and controlled vocabulary values as full context to the LLM worked for simple cases but did not scale, increasing latency, decreasing filter correctness, and causing the LLM to frequently hallucinate values that did not exist.
Netflix built a text-to-query system that converts natural language into Graph Search Filter DSL using RAG for field and controlled vocabulary context, with deterministic validation and transparent UI Chips and Facets so users can verify and trust generated queries.
Frequently asked questions
What did this team achieve with this AI workflow?
Netflix built a text-to-query system that converts natural language into Graph Search Filter DSL using RAG for field and controlled vocabulary context, with deterministic validation and transparent UI Chips and Facets…
What tools did this team use?
LLM, RAG, vector store, Abstract Syntax Tree (AST) parser, GraphQL.
What results were reported?
Pragmatic correctness via @mentions: significantly increasing pragmatic correctness; search accuracy with AI integration: improved accuracy (source-reported, not independently verified).
What failed first in this deployment?
The naive approach of providing all index metadata and controlled vocabulary values as full context to the LLM worked for simple cases but did not scale, increasing latency, decreasing filter correctness, and causing…
How is this back office ops AI workflow structured?
Natural language query input → Field RAG context scoping → Controlled vocabulary RAG → LLM filter statement generation → Syntactic and semantic validation → LLM self-correction loop → UI chips and facets output.