Half my eval regressions never touched the prompt file

· Source: LLM on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Intermediate, medium

Summary

Over the last two quarters, more than half of output regressions in a RAG service stemmed from changes that never touched the prompt directory, yet eval gates remained green. This issue arises because standard eval triggers often only monitor prompt or model changes, overlooking critical non-prompt inputs. These include tokenizer updates (e.g., Anthropic's recent models producing ~30% more tokens for the same text), retrieval index modifications, tool schema alterations, config default changes from SDK bumps, and provider model aliases resolving to newer builds. Each of these can silently degrade model output without tripping typical "paths: ["prompts/**"]" filters. The article highlights two failure modes: gates not running due to path filters, or running but passing because datasets don't exercise the affected components. It advocates for a broader approach to gate coverage.

Key takeaway

For MLOps Engineers responsible for LLM service reliability, you must expand your evaluation gate triggers beyond just prompt or model file changes. Your current "paths: ["prompts/**"]" filters likely miss critical regressions from tokenizer updates, retrieval index rebuilds, or SDK version bumps. Implement a lightweight canary eval across your entire service path and pin provider models to dated snapshots. This proactive approach will catch silent output degradations before they impact users, preventing false confidence from green but incomplete eval gates.

Key insights

Eval gates often miss regressions caused by non-prompt changes, requiring broader coverage and input monitoring.

Principles

Method

Proposes listing every input affecting output (prompt, tokenizer, retrieval index, tool schemas, SDK version, etc.), then checking if eval runs are triggered and datasets exercise each.

In practice

Topics

Best for: AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by LLM on Medium.