ADR-0055: FAQ-Corpus Drift Prevention — Purge Hand-Curated FAQs, Trust the Corpus
Date: 2026-05-12 | Status: Accepted (Phase 1 implemented, May 2026) | Related: ADR-0056 Chat Answer-Shape Typology, ADR-0050 Twilio + LiveKit SIP (master record private)
Context
The system has carried two independent answer-sources since voice was unified in Sprint E / Wave A:
- Hand-curated FAQ entries in a hospital-specific configuration file, matched by a regex pre-filter and dispatched from the RAG service for both chat and voice.
- Ingested corpus stored as documents and chunks in the database, nightly crawled, embedded, and retrievable via RAG.
Despite living in the voice part of the codebase, the FAQ pre-filter is channel-agnostic: both chat and voice hit it. The two-source design was originally a latency optimization for common questions on voice.
The drift case
On 2026-05-12 a user observed that voice answered "is er een apotheek?" correctly with "Apotheek Synaps Park…" while chat answered with the hand-curated FAQ text "ZOL heeft geen eigen apotheek voor publiek." The voice answer was correct only incidentally — the verbose speech-to-text transcript hit the compound-query skip rule and fell through to RAG.
A formal audit of all 10 ZOL-specific FAQ entries against the live pilot corpus found:
| Verdict | Count | Entries |
|---|---|---|
| Directly contradicted by corpus | 3 | pharmacy, lost and found, out-of-scope billing |
| Incomplete / under-specified | 2 | general parking, cafeteria |
| Unverified (no corpus evidence) | 3 | general visiting hours, helpdesk opening hours, wifi |
| Aligned with corpus | 2 | general phone number, general address |
Drift typology: every entry making list claims, service routings, or counter-corpus assertions had drifted within ~3 months. The two aligned entries were single immutable facts.
Decision
Phase 1 — Purge drift-prone entries (implemented 2026-05-12). Remove all 10 ZOL-specific FAQ entries from the configuration. Preserve only:
- Suicide-crisis response — safety/policy, Belgian crisis lines 1813 / 106.
- Chest pain and breathing emergency — safety/policy, 112 + ZOL spoed.
- Acute neurological deficit (stroke) emergency — safety/policy, stroke dispatch.
- Generic emergency keywords — safety/policy, generic emergency dispatch.
- An "overnight stay" ambiguity clarification — disambiguation utility, not a factual claim.
The shared default configuration is untouched: query-rewrite expansions (for example broadening parking queries or pharmacy opening-hours queries, plus language variants) are search-enhancement rules that don't carry factual claims.
Phase 2 — Nightly drift detector (planned). an audit script: for each surviving entry, retrieve top-k chunks via the existing retrieval, call GPT-4.1-mini once with FAQ canned answer + top-k chunks → return verdict {ALIGNED | CONTRADICTED | INCOMPLETE | SILENT} + 1-line rationale + cited chunk ids. Append the result to a dated audit file. Threshold: any CONTRADICTED → exit 1 → cron alert. Cost ~$0.015/run.
Phase 3 — Demand-driven promotion (planned, post-demo). Observe stored conversations → cluster similar questions → score against RAG quality (rephrase rate, thumb-down, handoff) → low quality × high demand = candidate → auto-draft FAQ entry whose answer is the best recent successful RAG response on that cluster → admin approves. When RAG outperforms an FAQ entry on its cluster, flag the entry for deletion. Demand-driven FAQs are fresh by construction.
Surviving categories — when an FAQ entry is justified
Three explicit categories survive the cull:
| Category | Justification | Examples |
|---|---|---|
| Safety / policy | Cannot tolerate retrieval failure or LLM drift on safety-critical answers | crisis hotlines, 112 emergency dispatch |
| Out-of-corpus routing | The destination service is not represented in retrievable chunks | (none currently) |
| Promoted from telemetry | High demand + measured RAG quality gap | (none yet; Phase 3 wiring required) |
Anything outside these three categories goes through RAG.
Consequences
Positive
- Single source of truth. Patient-facing answers come from the nightly-refreshed corpus, not from a hand-authored layer with month-scale drift.
- Voice / chat consistency. Both channels now answer identically for topics previously FAQ-intercepted. The pharmacy inconsistency is not expected to recur.
- Reduced maintenance. 287 lines of YAML deleted; no on-call burden to keep hand-curated entries in sync with operational changes.
- Better signal for content team. Once Phase 3 lands, the "what patients ask that RAG fails on" dashboard becomes a content-priority feed.
Negative / trade-offs
- Latency. Topics that used to short-circuit (parking, cafetaria) now go through full RAG. Worst case: ~600-1 500 ms extra per query. Mitigation: streaming UX makes first-token latency feel responsive; voice channel has the 300-token cap.
- Cache invalidation. The semantic query cache may have entries carrying old FAQ answer text for affected topics. Operators should flush cache entries matching the deleted FAQ trigger patterns after deploy (or accept TTL-driven expiration).
Mitigations
- Phase 2 nightly audit catches future drift on the surviving entries (the four safety rules) within 24 h of corpus changes.
- ADR-0050's pilot deployment conventions (build on the pilot server, no voice-agent rebuild during chat-only changes) keep the rollout surface tight.
Rejected alternatives
- Fix the contradicted FAQ entries manually + keep the rest. Rejected — drift was not random; every list / routing / counter-corpus entry drifted. Manual fixes pay maintenance cost forever without addressing the architectural cause.
- Move the FAQ registry into the corpus. Rejected — FAQ entries with real value (emergency dispatch, crisis hotlines) are precisely the ones that should NOT depend on retrieval-success. Safety entries must not depend on retrieval succeeding.
- Add staleness flags to each FAQ entry. Rejected — a "stale FAQ flag" is still a hand-curated layer that drifts.
References
- Phase 1 was deployed on 2026-05-12.
- The master record is kept in the project's private repository.