Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / IterativeRetrievalResult

Interface: IterativeRetrievalResult<H>

Defined in: packages/memory/src/search/iterative.ts:342

Result of an iterative retrieval run.

Stable

Type Parameters

Type Parameter
H

Properties

PropertyModifierTypeDescriptionDefined in
abstainedreadonlybooleantrue when the loop exhausted its cap / ran out of reformulations while still judged insufficient - the caller should abstain rather than answer from hits.packages/memory/src/search/iterative.ts:356
gateHardreadonlybooleanDifficulty-gate verdict (whether the loop was eligible to run).packages/memory/src/search/iterative.ts:348
gradedreadonlybooleantrue when the grader actually judged the result at least once (memory-retrieval-02). false on the single-shot path (gate not hard, or no grader configured) - there sufficient: true is a DEFAULT, not a verdict, and consumers must not read it as one.packages/memory/src/search/iterative.ts:363
hitsreadonlyreadonly H[]Accumulated hits across all passes (deduped, in discovery order).packages/memory/src/search/iterative.ts:344
iterationsreadonlynumberNumber of retrieval passes performed (≥ 1).packages/memory/src/search/iterative.ts:346
queriesreadonlyreadonly string[]The sequence of queries tried (original first).packages/memory/src/search/iterative.ts:365
sufficientreadonlybooleanFinal sufficiency verdict.packages/memory/src/search/iterative.ts:350