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