Skip to content
mentoor

Topic 5 of 5 · 5 min read

Handling conflicting and outdated sources

Goal: Produce an answer that reports a conflict between two retrieved sources and prefers the current version using metadata.

When retrieved sources disagree, the answer should say so and prefer the current, authoritative one by metadata, never by a silent coin flip. A model shown two conflicting chunks will usually pick one, and the reader will never know there was a choice.

Check yourself · 1 of 3

Two retrieved chunks give different hotel limits. What should the answer do?

Choose one answer

Why it matters

Real knowledge bases hold several versions of the same thing: the 2023 travel policy next to the 2026 one, a draft next to the approved text, a regional rule next to the global one. Chunking and search treat them as ordinary text and happily return both. If the model picks the old one, the user gets a confident, cited and wrong answer. The citation is real, which makes it worse.

How to do it

  1. Attach metadata at ingestion. For each document store version, effective date, status (draft, current, superseded), owner and scope such as region. Chunks inherit it.
  2. Filter or rank by metadata at retrieval. Exclude superseded and draft documents by default, or boost current ones. Keep the old versions in the index if users need to ask about the past, and let them select a date.
  3. Show the metadata to the model. Put the date and status in each source block, for example <source id="travel-2023" status="superseded" effective="2023-04-01">. The model cannot prefer the newer one if it cannot see dates.
  4. Give a rule for conflicts. For example: prefer status current, then the later effective date, then the narrower scope. If the sources still disagree after the rule, report both.
  5. Surface the conflict. Name both sources and what each says, state which one you used and why, and tell the user who can confirm.
  6. Look for silent staleness. Documents with no replacement can still be old. Flag sources beyond a review age, such as 18 months, in the answer.

Before and after

Chunks: "Hotel limit is 150 per night" (Travel Policy, effective 2023-04-01, superseded) and "Hotel limit is 200 per night" (Travel Policy, effective 2026-01-01, current).

Weak:

The hotel limit is 150 per night [1].

Better:

The current hotel limit is 200 per night [2] (Travel Policy effective 2026-01-01). An older version, effective 2023-04-01, listed 150 [1] and has been superseded.

What goes wrong

  • No metadata, no rule. The model picks by wording or position, and results change between runs.
  • Trusting recency blindly. A newer draft is not newer policy. Status matters as much as date.
  • Dropping the old text from the answer entirely. Sometimes the user's question is about the past, such as an expense from 2024.
  • Merging two versions into one. "Between 150 and 200" is invented, and it appears in neither source.

Examples

Source blocks with metadata

<source id="travel-v2023" status="superseded" effective="2023-04-01">
Hotel limit is 150 per night.
</source>
<source id="travel-v2026" status="current" effective="2026-01-01">
Hotel limit is 200 per night.
</source>
<rules>
Prefer status=current, then the later effective date. If sources conflict, say so and name both.
</rules>

A question about the past

User: "What was the hotel limit when I travelled in June 2024?" The right source is the 2023 version, which was in force then. A system that always prefers the newest document answers 200 and is wrong for that trip. Date-aware filtering fixes this: pick the version whose effective period contains the date asked about.

Key points

  • Store version, effective date, status and scope for each document at ingestion, and let chunks inherit them.
  • Filter or boost by metadata at retrieval so superseded and draft text is not treated like current policy.
  • Show dates and status inside the source blocks so the model can apply your conflict rule.
  • State a priority order for conflicts, such as current status, then later effective date, then narrower scope.
  • When sources still conflict, report both with their citations instead of choosing silently or blending them.

Common mistakes

  • Indexing every version of a document without storing version, date or status.
  • Letting the model choose between conflicting chunks by position or wording.
  • Assuming the newest document is always current, even if it is a draft.
  • Blending two different figures into a range that neither source states.

Check yourself · 2 of 3

Which metadata is most useful for choosing between two versions of a policy?

Choose one answer

Check yourself · 3 of 3

A user asks what the rule was in June 2024. The newest policy is from 2026. Which approach answers correctly?

Choose one answer

Practice items, not counted towards your mastery.

Start here