CompareHow it worksExperimentsServicesFAQGuides Book a discovery call

All guides

Preventing AI hallucinations when your knowledge base is outdated

An AI support agent can cite a real article and still give the wrong answer. The page may describe a retired API, an old price, or a policy that does not apply to the customer's plan.

Retrieval-augmented generation, or RAG, retrieves source material and uses it to compose an answer. Reliability depends on both stages: finding applicable information and using it correctly. Improving the prompt alone will not repair a knowledge base full of competing versions.

Separate stale facts from unsupported claims

Consider an old article saying API v2 supports batch requests and a newer deprecation notice saying that capability has been retired. The retriever may find only the old article. It may find both and leave the model to reconcile them. Or neither source may answer the customer's actual question, leading the model to guess.

These are different failures. An answer can faithfully repeat a stale source and be factually wrong. It can also cite a current document that does not support the claim it makes.

A Stanford-led study of legal research tools distinguishes factual errors and problems with source support. That distinction is useful for a support review rubric, but the study's results should not be presented as customer-support failure rates.

Review correctness, source support, and completeness separately. A correct summary of the standard refund policy can still be unusable if it omits the enterprise-plan exception.

1. Make freshness and applicability visible

Attach the context a retriever needs to documents and chunks: product, version, plan, region, owner, effective date, last-verified date, and lifecycle state. Keep those fields aligned with the source rather than treating an indexing timestamp as evidence that the content was reviewed.

Mark material as current, superseded, archived, or under review. Set validity periods for temporary policies, promotions, and beta features. Review intervals should reflect risk and change frequency; a universal 90-day expiry can both remove useful material and leave fast-changing content unchecked for too long.

Historical articles may still be needed for customers on legacy versions. Preserve them with clear applicability instead of mixing them into current guidance without a distinction.

2. Evaluate retrieval against authoritative sources

Build test questions with known relevant documents. Include exact API names, error codes, legacy versions, plan-specific policies, and ambiguous customer wording.

Test whether semantic search, keyword matching, metadata filters, query aliases, or reranking improve the relevant failures. These are options to evaluate, not a guaranteed architecture. Authorization and tenant restrictions must still apply to every retrieval path.

Measure whether the retriever finds the needed information and how much irrelevant or inapplicable material it returns. Define precision and recall for the unit you assess, such as documents, passages, or claims. Rankings can also be useful when the order of results affects what reaches the model.

Avoid adopting a universal score threshold. A retrieval score on easy FAQs may conceal a serious miss on a deprecation or contractual exception.

3. Validate high-impact content before indexing it

Assign a subject-matter owner to pricing, security, data handling, policy exceptions, API changes, and other material that affects customer decisions. Record who approved an update and when it becomes effective.

Compare documentation with authoritative systems where possible. A help article may need to be checked against the live product configuration, approved policy, or API specification.

Define precedence when sources conflict. If the answer depends on a plan, version, or region, the system needs that context before deciding which source governs. When the conflict cannot be resolved, asking a question or escalating is preferable to silently choosing the most recent-looking page.

Test false premises too. A customer asking how to enable an unsupported feature should not receive invented setup steps.

4. Treat updates as a workflow with a verified end state

Connect documentation review to product releases, pricing changes, deprecations, and policy revisions. Automation can draft an update or flag missing metadata, but important changes still need an accountable reviewer.

Check more than publication. Verify that the new content was indexed, superseded chunks stopped appearing as current guidance, and caches or copied sources do not continue to serve the old answer.

Keep a record of the release, source version, index update, and verification. If an update fails, identify who is notified and whether affected topics should be paused or routed to a person.

Use webhooks or build checks when they help connect the process. Their value is in detecting missed steps, not in guaranteeing that every document is correct.

5. Monitor answers after launch

Sample conversations and inspect factual accuracy, source applicability, completeness, and escalation. Connect failures to the actual document versions and retrieved passages used at the time.

Segment results by product area, request type, version, customer tier, and risk. Review repeat contacts, negative feedback, and human corrections as additional signals. A low aggregate error rate can hide a narrow topic that repeatedly gives unsafe guidance.

Record appropriate abstention as an outcome. An agent should be able to ask for missing context or hand off an unresolved conflict without being penalized simply for answering fewer questions.

Diagnose retrieval and generation separately

For each failed answer, inspect the retrieved evidence first. Did the system find the right source? Did it exclude unauthorized or inapplicable material? Did it find enough information to answer?

Then inspect generation. Did the answer follow the source, invent a detail, miss a qualification, or accept a false premise? Test factual correctness against the authoritative reference as well as faithfulness to the retrieved text.

RAGChecker is a research framework with separate retrieval and generation diagnostics and fine-grained claim evaluation. It is one way to investigate failures; its scores do not replace a representative rubric and human review.

If you use automated judges, compare them with support specialists on examples that matter to the product. Review disagreements and high-risk cases. Treat judge outputs as measurements with limitations, rather than ground truth.

Start with a repeatable review loop

Choose a manageable set of support questions, including recent changes and known failures. For each, record the applicable customer context, authoritative source, and expected facts.

Run the agent and retain the configuration, retrieved source versions, answer, and evaluation result. Classify the failure before changing the system: freshness, source quality, missing context, retrieval, or generation.

Fix the highest-impact cause and rerun the same cases. Expand the set as new failures appear, keeping development examples separate from held-out evaluation cases.

This gives the team a way to check whether a fix worked and whether a later change reintroduced the problem. The objective is a maintained knowledge process with traceable answers, not a promise of zero hallucinations.

If you need help presenting credible support evidence in your market positioning, Book a discovery call.

Book a discovery call