Represent claims with units, time, source revision and authority; resolve only explicit precedence and abstain when evidence still conflicts.
Conflicting retrieved claims: compare scope before choosing an answer
High rank cannot settle a factual conflict
Two retrieved passages can disagree while both are topically relevant. One may state a retired pressure limit, another a current limit, or both may describe different machines with similar names. Embedding similarity and BM25 score measure retrieval fit, not truth. Before answering, extract the exact claim, subject, unit, scope, valid time and source revision from each candidate. Then distinguish a real contradiction from a comparison of different periods or entities. Temporal retrieval handles as-of questions; this lesson handles the remaining conflict after scope has been aligned.
Preserve the evidence chain
Keep every competing claim tied to a stable passage ID, document version and accessible source span. A summary that strips those identifiers can merge incompatible facts into a plausible but unsupported sentence. The answer layer should know whether a value came from a signed operating procedure, a field note or a user comment, and whether the source is current for the requested asset. Passage provenance supplies the chain; claim support checks confirm that the final wording matches a cited span. Never present the model's synthesis as a new source.
Precedence needs an explicit policy
A policy may prefer an approved revision of an operating manual over an older superseded revision for a specific plant. It should not prefer a source merely because the document is newer or its vector score is higher. A later discussion post may be less authoritative than an older still-valid standard. Encode precedence by source type, approval status, entity scope and validity interval, then test it with known cases. If two active approved sources disagree at the same scope, leave the conflict visible and escalate. Document lifecycle determines whether a source is even eligible for this decision.
Normalize values before declaring disagreement
Numerical claims require units, tolerances and measurement conditions. A value in kilopascals and one in bars can be equivalent after conversion; a temperature setpoint and a maximum safety limit are different predicates despite sharing a number. Preserve the original text and compute a normalized comparison only when the conversion rule is known. Do not erase ranges, qualifiers or uncertainty. The example compares exact normalized values under one subject and predicate; a production system also needs approved unit conversions and tolerance bands. Numeric cell context prevents a table header from being dropped while extracting a value.
Abstention is a valid result
If conflicting eligible sources cannot be resolved by an approved rule, return a concise conflict report with both source spans and the missing decision, or ask a domain owner. Do not average incompatible limits or pick the first result. A bounded follow-up search may find a superseding revision, but stop after a stated budget and avoid turning repeated retrieval into manufactured certainty. Corrective retrieval controls that retry; evidence-bound answering defines the final refusal to assert an unsupported value. Track unresolved-conflict rate alongside answer accuracy during release testing.
Worked contract
from dataclasses import dataclass
@dataclass(frozen=True)
class Claim:
asset_id: str
predicate: str
value_kpa: int
valid_from: int
valid_until: int | None
approved: bool
passage_id: str
def resolve_limit(claims: list[Claim], asset_id: str, as_of: int
) -> tuple[int | None, list[str]]:
eligible = [claim for claim in claims
if claim.asset_id == asset_id
and claim.predicate == "maximum_pressure"
and claim.approved and claim.valid_from <= as_of
and (claim.valid_until is None or as_of < claim.valid_until)]
if not eligible:
return None, []
readings = {claim.value_kpa for claim in eligible}
sources = sorted(claim.passage_id for claim in eligible)
if len(readings) != 1:
return None, sources
return readings.pop(), sources
claims = [Claim("pump-47", "maximum_pressure", 620, 100, None,
True, "manual-v3-p6"),
Claim("pump-47", "maximum_pressure", 590, 100, None,
True, "bulletin-12-p2"),
Claim("pump-47", "maximum_pressure", 570, 20, 100,
True, "retired-v1-p4")]
assert resolve_limit(claims, "pump-47", 123) == (
None, ["bulletin-12-p2", "manual-v3-p6"])
assert resolve_limit(claims, "pump-47", 55) == (570, ["retired-v1-p4"])Performance and operating cost
Filtering C extracted claims takes O(C) time; sorting E eligible passage IDs costs O(E log E) and requires O(E) memory. Claim extraction, unit normalization, source validation and additional retrieval are separate costs. This example abstains when two active approved claims disagree and does not implement an authority hierarchy. A production resolver must log policy version, source revisions and scope, and must reject missing or uncertain units rather than silently treating them as comparable. More retrieval can increase the chance of finding a superseding source but also consumes latency and can surface new conflicts.
Common Mistakes
- Choosing the higher-ranked passage as truth when two eligible sources disagree.
- Comparing numbers without units, predicate and operating conditions.
- Discarding source revision or passage identity during answer synthesis.
- Averaging two incompatible safety limits instead of reporting the unresolved conflict.
Validation drill
Assemble 53 asset-limit questions with superseded revisions, equivalent converted units, conflicting current approvals and wrong-asset distractors. Measure correct resolution, false certainty and source-span accuracy; require abstention for unresolved active conflicts.
