Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / RetrievalGrade

Interface: RetrievalGrade

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

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:170
reason?readonlystringOptional short rationale (never surfaced in spans).packages/memory/src/search/iterative.ts:177
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:175
sufficientreadonlybooleanWhether the retrieved memories suffice to answer the query.packages/memory/src/search/iterative.ts:168