Skip to main content

Module verification

Module verification 

Source
Expand description

Retrieval verification pass (CH-11 rag-hardening, §5.4 item 2 of docs/uar-next.md).

A cheap, in-process corroboration check applied to every retrieved chunk: it must share at least one non-trivial (stopword-filtered) term with the query it was retrieved for. This catches the case where vector search returns a chunk above the score threshold that isn’t actually lexically related to the query (embedding drift / an off-topic false positive) — it is NOT the full LLM-based fact-cross-referencing layer docs/uar-next.md §5.4 envisions long-term; that needs a model call and is future work. This is the free first pass that needs no LLM.

Enums§

VerificationVerdict
Verdict from the verification pass for a single retrieved chunk.

Functions§

verify
Verify one retrieved chunk against the query that retrieved it.