Evidence Sufficiency

The decision, inside an agentic retrieval loop, of whether the evidence already in hand is enough to answer — and so whether to stop, or to read more. Context as Infrastructure - Knowledge Compilation for Retrieval in Agentic Systems with Harnesses makes it an explicit, framework-owned gate rather than something the model judges in passing, and builds a cost model around how often the gate says yes.


The gate

In RAGFlow’s harness the evidence gate is the third of five stations (Search Strategy Optimization). It checks sufficiency by unit count, source diversity and coverage of the question. If the evidence suffices, one model call answers from it and no raw text is read. If not, the whole block is discarded — removed from the prompt and the citation table — rather than stuffed into context. Gating also sits at tool-result admission and at delivery, where every cited claim must resolve to a live source span.

The judging is done by a small decision model released for exactly this role, not a general answering model. Of the two the paper compared, the Qwen decision model had no failed groups (30.5 s total) against StartLux’s 18 failed groups (560.1 s).

A gate that only controls whether to read deeply is a separate lever: with claim–evidence trees present it cut mean end-to-end latency from 140 s to 30 s; without evidence it still saved about 30% of tokens by declining deep reads that wouldn’t change the answer.

The economics

Let p_h be the gate’s acceptance rate. On FRAMES, token change relative to the uncompiled harness was −91% on a hit and +1.9% on a miss, so

E[Δ] = 0.019 − 0.929 · p_h

Compilation pays for itself in query tokens once p_h > ≈2%. The measured −38% average implies p_h ≈ 43% — a derived figure, not a direct measurement. The asymmetry is the point: a miss costs one extra look at a chunk the harness already found; a hit replaces a full chunk read with a few sentences.

Sensitivity. The break-even rate depends far more on the miss penalty than on the hit saving: ±1.5 points on the penalty moves it between about 0.4% and 3.6%, while the same on the saving moves it only between 2.0% and 2.1%. The paper’s instruction: measure how often projections fail, not how much they save when they work.

Amortization and the no-compile boundary. With compilation cost c in query-equivalents, the 2% rule is an infinite-horizon statement. For Q queries compilation pays only when p_h > 2.0% + c / (0.929 Q). A 1,000-query pilot with c = 10 needs p_h > 3.12%, and at a measured 2.5% still loses 5.8 query-equivalents. At p_h ≈ 0.43, a corpus costing ten query-equivalents to compile pays back after about 26 queries.

Acceptance is not sufficiency

What the gate produces is an acceptance rate, observable without labels; sufficiency is a judgment about whether the evidence could support the answer. A gate accepting 43% of queries might be right most of the time, or admitting fluent but irrelevant blocks — neither the acceptance rate nor the token saving can tell. The paper defines a false-accept rate φ and an estimator for it from conditional accuracies, and specifies a minimum labeled audit of 100–400 accepted queries, but has not run it, so reports no φ.

Design rules drawn from it

  • Measure conditional costs, not averages, and measure latency with them: “a 38% average hides a 91% hit and a 1.9% miss”.
  • Gate sufficiency against a lossless fallback to the raw chunk.
  • Tune a gate threshold in shadow on hash-bucketed traffic, since rejected queries have no observed counterfactual; promote it only when the accepted branch is non-inferior in accuracy.