How would you detect that your production RAG vector index has gone stale, before users notice degraded answers?
You operate a production RAG system over a knowledge corpus that updates daily (new docs added, old docs revised or removed). Describe three concrete signals you'd instrument to detect that your vector index has gone stale, before user complaints about wrong or outdated answers reach support.
Detect a stale RAG index with three signals: per-chunk freshness lag (leading), nightly golden-set retrieval recall (mid-lag), and query-stream score/refusal metrics (lagging). Together they catch every staleness mode.
Imagine a library where the catalog is supposed to match the shelves. Over time new books arrive, old ones get edited or thrown out, but the catalog doesn't always keep up. You want to catch this before a reader complains that the book they found was the wrong edition. So you watch three things. First, you check the dates: does every catalog card say it was updated recently, or are some weeks behind? Second, you keep a list of test questions you already know the right shelf for, and each night you ask the catalog those questions to see if it still points to the right place. Third, you watch real readers: if more of them suddenly leave empty handed or grab books that barely match, something is off. The first check warns you earliest; the third catches surprises the first two missed.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: name three signals, map each to a staleness mode, order them leading to lagging with detection latency, then give a concrete threshold or cadence for each and explain why one alone is insufficient.
| Signal | Staleness mode caught | Latency (leading vs lagging) | Typical cadence / threshold |
|---|---|---|---|
| Freshness assertions (source vs indexed timestamp) | Data staleness: new/revised/deleted docs not propagated | Leading | Continuous; alert p99 lag > refresh cadence (~48h for daily) |
| Golden-set retrieval eval (context recall, ideal chunk rank) | Retrieval-quality staleness: chunks present but rank dropped | Mid-lag | Nightly; alert recall drop past noise floor vs baseline |
| Query-stream metrics (top-k score, refusal, low-confidence rate) | Real-traffic staleness: degradation on unseen query patterns | Lagging | Continuous; alert on distribution shift / refusal spike |
Real products, models, and research that use this idea.
- Glean's enterprise search re-crawls connected SaaS sources on a cadence and tracks per-connector freshness lag, so stale documents surface as an ingestion alert rather than a bad answer.
- The RAGAS-on-CI pattern lets teams run a fixed golden eval set nightly in 2026, computing context recall and faithfulness to catch retrieval regressions before deploy.
- Arize Phoenix and LangSmith dashboards instrument live RAG traces (retrieval score distributions, low-confidence rates) so query-stream drift is visible without waiting for support tickets.
What an interviewer would ask next. Try answering before peeking at the approach.
QFreshness is green but golden-set recall just dropped 8%. What are the likely causes and how do you triage?
QHow do you build a golden set that doesn't itself go stale as the corpus evolves?
QRaw cosine scores aren't calibrated across embedding models or corpora. How do you make the stream signal trustworthy?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Naming only one signal, usually waiting for query-stream metrics or user complaints to dip. That is the slowest, most lagging detector and misses staleness for days.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.