
Combining deterministic rules with LLM reasoning to achieve 100% failure extraction coverage and automated CI/CD eval gates.
Netflix platform engineers introduced Pensive AI to resolve complex workload failures across Spark, Trino, Druid, and Titus. By using bounded line-number extraction and on-demand LLM debugging, Netflix scaled diagnosis while strictly controlling costs and latency. Integrated continuous evals in CI/CD pipelines ensure model precision and prevent system regressions.
Highly recommended for platform engineers and MLOps architects building production-grade AI observability. It offers a blueprint for combining deterministic rules with LLM reasoning while managing costs and latency.
Netflix runs millions of daily workloads where roughly 100,000 fail on peak days, and traditional regex-based rules failed to classify nearly 50% of these failure modes.
Netflix built Pensive AI, combining deterministic legacy rule engines with AI error extraction using line-number range outputs and step-attempt cached on-demand LLM failure diagnosis.
Pensive AI expanded error extraction coverage to 100% and resulted in 321% more manual debug-log exploration actions for failed attempts where Pensive AI was not used.
Trade-off
Full LLM debugging introduces higher latency (tens of seconds to a minute) and compute costs, requiring on-demand user triggers and step-attempt caching instead of automatic execution.
A prompt design technique where the LLM identifies error spans by returning only start and end line numbers rather than generating entire log strings. This significantly reduces output token latency, cost, and hallucination risks.
A caching mechanism centered on immutable workload execution units (step attempts) to prevent redundant LLM inference calls across multiple users and entry points.
An automated continuous evaluation framework integrated into the deployment pipeline to measure extraction precision and recall before code merges.




