On peak days roughly 100,000 workloads fail and engineers must manually triage logs.
The manual effort wastes compute, delays pipelines and consumes engineering time.
The team solved it by: 👉 Wrap an LLM around the existing deterministic Pensive pipeline for error extraction. 👉 Number log lines and have the model return start/end indices to avoid token cost. 👉 Cache on-demand debugging results per step attempt and expire after 90 days.
The parts that matter: 1️⃣ Pensive AI - adds AI-assisted error extraction and on-demand debugging to the legacy system 2️⃣ Maestro - orchestrates workflow steps and invokes Pensive for error classification
AI error extraction now covers 100% of failures, and steps without Pensive AI required 321% more manual actions.
The extraction model only returns line numbers, so it can still select the wrong span and must be evaluated for quality. On-demand debugging is slower and more expensive, so it runs only when a user requests it, limiting cost but adding latency for deep analysis. Maintaining both legacy and AI fields adds schema complexity and a gradual rollout overhead.
How do you balance AI latency and coverage when adding LLMs to existing deterministic pipelines?