Book a free call

Knowledge Base Drift: Keeping AI Agents Calibrated

Knowledge base drift is when the documents an AI agent answers from go out of date, so its answers quietly go stale. How to spot drift early and recalibrate it.

Hertiv engineering teamReviewed by a senior engineer
7 min read
Knowledge Base Drift: Keeping AI Agents Calibrated
On this page

Short answer

Knowledge base drift is the slow gap that opens between what an AI agent's documents say and what is true now, as prices, policies, product details and procedures change. Drift detection watches for that gap with freshness checks, retrieval tests and user feedback, and calibration resets the agent's confidence thresholds and grounding rules so it refuses or escalates instead of answering from stale facts.

What is knowledge base drift in an AI agent?

Knowledge base drift is the gap that opens between the documents an AI agent retrieves from and the current truth, as the underlying facts change and the documents do not. Prices move, policies are rewritten, products are renamed and procedures change, while the agent keeps answering from the old version.

Agents that answer from retrieved documents are exposed to drift in a way that a model answering from training data is not. The model itself has not changed, so nothing looks broken, but the facts it is handed have quietly aged. The agent sounds just as confident while giving answers that are no longer right.

Drift is different from a bad answer. A bad answer comes from a wrong retrieval or a weak prompt and can be fixed in one place. Drift is a slow, system-wide ageing of the source material, and it needs a process that runs on its own, not a one-off fix. Grounding answers in your own data is the starting point, as in RAG development.

How does drift reach the agent's answers?

Drift reaches the agent's answers through the documents it retrieves, because the agent trusts what it is given. If a price list is three months old, the agent quotes the old price; if a return policy changed, it explains the old rules.

Drift sourceWhat the user seesFirst sign
Outdated price or feeWrong quote in the answerComplaints about pricing
Changed policyOld rules explained as currentEscalations from support
Renamed productAgent names a product that no longer existsConfused follow-up questions
Changed procedureSteps that no longer workUsers failing at a step
New terminologyAgent misses the user's meaningLow retrieval scores on new terms

Drift is worst in fast-moving areas: pricing, promotions, compliance rules and product catalogues. Stable reference material, such as how a product works at a basic level, ages far more slowly.

The damage is not only wrong answers. Once users learn an agent cannot be trusted on prices or policies, they stop using it for anything, including the topics it still gets right.

How do you detect drift before users do?

You detect drift before users do by testing the agent against a fixed set of questions with known answers, and by watching the freshness of the documents it retrieves from. Waiting for complaints means the drift has already reached customers.

A golden set is a fixed list of questions with correct answers, run against the agent on a schedule. If the agent's answers start to differ from the known answers, something in the knowledge base has moved. Golden sets catch drift even when no user has complained yet.

Freshness checks look at the documents themselves: when each source was last reviewed, whether it has a review date, and whether the pages it points to still exist. Retrieval checks look at whether the agent still finds the right documents for new terms and phrasings.

User signals still matter as a backstop. Corrections, thumbs-down ratings and escalations to a human all point at answers that may have drifted, and they should feed back into the golden set. A structured way to judge answers is covered in how to evaluate LLM applications.

What does calibrating an AI agent mean?

Calibrating an AI agent means matching its confidence to its actual accuracy, so it answers firmly when it is right and holds back when it is not. A well-calibrated agent says it does not know instead of guessing from stale facts.

Calibration has three parts. First, a confidence threshold: below a set score, the agent must refuse or escalate instead of answering. Second, grounding rules: the agent may only state facts that appear in a retrieved document, and it must cite the source it used.

Third, a refusal style that helps the user: a good refusal explains what is missing and offers the next step, such as checking with a human or looking at a specific page. A bare refusal frustrates users and pushes them to rephrase until the agent guesses.

Calibration is not a one-time setting. As the knowledge base changes, the thresholds that worked last quarter may be too loose or too strict, which is why calibration is checked on the same schedule as drift. The evaluation side is covered in AI agent evaluation.

How do you set up drift checks that run on their own?

You set up drift checks that run on their own by giving every source a review date, building a golden question set, and scheduling the checks so a person only gets involved when something fails.

  1. Inventory the sources. List every document, page and feed the agent retrieves from, and note who owns each one.
  2. Tag freshness dates. Give each source a last-reviewed date and a review interval based on how fast its facts change.
  3. Build a golden set. Write 30 to 50 questions with known answers, covering prices, policies, products and procedures.
  4. Schedule the runs. Run the golden set weekly for fast-moving sources and monthly for stable ones, and log every result.
  5. Alert on drops. When the pass rate falls below a set line, or a source passes its review date, notify the owner.
  6. Assign an owner. Every source and every golden question needs a named person who fixes it when it fails.

Start small: ten golden questions and the five most-used sources are enough to catch the worst drift. A fuller evaluation framework is described in what LLM evaluation is.

How do you fix drift once you find it?

You fix drift once you find it by updating the source document first, then re-indexing, and only then changing the agent's prompts or thresholds. Fixing the prompt while the source stays wrong hides the problem instead of solving it.

Update the document where it lives, with the new facts and a fresh review date. Then re-chunk and re-index the changed pages so the agent retrieves the new version, and check that the old version is gone from the index rather than sitting beside it.

If retrieval still misses, the fix may be in how documents are split or described. Short, focused pages with clear titles retrieve better than long pages that mix several topics, and a short summary at the top helps the agent pick the right one.

Only after the source is right should you adjust the agent: tighten the confidence threshold if it guessed too often, or loosen it if it refused good answers. Then re-run the golden set to confirm the fix. Retrieval quality itself is the focus of RAG evaluation.

Example (hypothetical): a support agent answers with last year's prices

Example (hypothetical): a support agent answers 400 questions a day, and 90 of them mention prices. The price list changed three months ago, but the document in the knowledge base is still the old one.

A weekly golden set of 50 price questions finds 6 wrong answers, which is a 12% error rate on pricing. At 90 price questions a day, that is about 11 wrong answers a day, since 90 times 0.12 is 10.8.

Each wrong answer takes a support agent about 15 minutes to correct, so 11 wrong answers cost 165 minutes, or about 2 hours 45 minutes of human time every day. After the price list is updated and re-indexed, the golden set finds 1 wrong answer in 50, a 2% error rate.

At 2%, the agent gives about 2 wrong price answers a day, costing 30 minutes of corrections. The fix saves about 135 minutes a day, which is 2 hours 15 minutes of support time recovered every day from one document update.

What are the common mistakes?

The most common knowledge base drift mistakes are having no review dates, testing only on fresh documents, and calibrating the agent once and never checking it again.

  • No freshness dates. Documents without a review date are never reviewed, so they age silently for years.
  • Testing only new documents. Golden sets that avoid old pages never catch the drift hiding in them.
  • Ignoring retrieval quality. A perfect answer is useless if the agent retrieves the wrong document first.
  • Calibrating once. Thresholds set at launch drift with the knowledge base and need regular re-checking.
  • Trusting confidence scores alone. A confident answer can still be wrong when the source is stale.
  • No owner per source. When nobody owns a document, nobody updates it when the facts change.

Key takeaways

  • Knowledge base drift is the gap between what an agent's documents say and what is true now
  • Golden question sets with known answers catch drift before users complain about it
  • Calibration matches the agent's confidence to its accuracy, so it refuses instead of guessing
  • Fix the source document first, then re-index; never fix the prompt while the source stays wrong
  • Every source needs a review date, a review interval and a named owner

Frequently asked questions

What is knowledge base drift?

Knowledge base drift is the slow gap that opens between the documents an AI agent retrieves from and the current truth. Prices, policies, product names and procedures change while the documents stay the same, so the agent keeps giving answers that used to be right.

How is drift different from a hallucination?

A hallucination is an answer the model invents when it has no good source, while drift is an answer grounded in a real document that has gone out of date. Drift is fixed by updating the source; hallucinations are fixed by stronger grounding rules and retrieval.

How often should I check for drift?

Weekly for fast-moving sources such as pricing, promotions and compliance rules, and monthly for stable reference material. A golden set of fixed questions with known answers, run on that schedule, catches drift before users report it.

What is a golden set for drift detection?

A golden set is a fixed list of questions with known correct answers, run against the agent on a schedule. If the agent's answers start to differ from the known answers, something in the knowledge base has moved. Start with 30 to 50 questions covering prices, policies and procedures.

What does agent calibration mean in practice?

Calibration means the agent's confidence matches its accuracy. In practice it is a confidence threshold below which the agent refuses or escalates, grounding rules that require facts to come from a retrieved document, and a refusal style that tells the user what is missing and what to do next.

Who should own drift detection?

Every source needs a named owner who updates it when facts change, and one person should own the golden set and the check schedule. Without owners, drift is found by customers instead of by the team, which is the most expensive way to find it.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Need an AI agent that stays accurate as your docs change? Talk to Hertiv.

A senior engineer replies within one business day. Or see our RAG Development service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call