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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
confidence | readonly | number | Grader confidence, clamped to [0, 1]. | packages/memory/src/search/iterative.ts:171 |
reason? | readonly | string | Optional short rationale (never surfaced in spans). | packages/memory/src/search/iterative.ts:178 |
reformulation | readonly | string | null | A 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 |
sufficient | readonly | boolean | Whether the retrieved memories suffice to answer the query. | packages/memory/src/search/iterative.ts:169 |