Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / RetrievalGrade

Interface: RetrievalGrade

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

Verdict from grading a retrieved candidate set against a query.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
confidencereadonlynumberGrader confidence, clamped to [0, 1].packages/memory/src/search/iterative.ts:171
reason?readonlystringOptional short rationale (never surfaced in spans).packages/memory/src/search/iterative.ts:178
reformulationreadonlystring | nullA single better search query to try next, or null when the grader proposes none (the loop then stops / abstains).packages/memory/src/search/iterative.ts:176
sufficientreadonlybooleanWhether the retrieved memories suffice to answer the query.packages/memory/src/search/iterative.ts:169