GraphLocalResult
@forge/monorepo / backend/src / GraphLocalResult
Type Alias: GraphLocalResult
GraphLocalResult =
object
Defined in: backend/src/knowledge/graph-retrieval.ts:110
Properties
hits
readonlyhits: readonlyGraphChunkHit[]
Defined in: backend/src/knowledge/graph-retrieval.ts:111
matchedEntities
readonlymatchedEntities: readonlystring[]
Defined in: backend/src/knowledge/graph-retrieval.ts:113
The entities the question resolved to. Empty means nothing matched — an honest empty result.
rankedBy
readonlyrankedBy:"relevance"|"connectivity"
Defined in: backend/src/knowledge/graph-retrieval.ts:130
Which ranking produced the order — #277, AC-1.
Reported because the two are not interchangeable and a measurement of one must never be mistaken for a
measurement of the other. connectivity means no embedder was configured.
relationships
readonlyrelationships: readonlyKnowledgeRelationship[]
Defined in: backend/src/knowledge/graph-retrieval.ts:121
The edges traversed, with their provenance — AC-6.
Returned rather than folded into the chunks because "Team A depends on the retry budget" is a fact stored on an edge, and a model handed two adjacent chunks would have to infer the connection. Handing it the relationship lets it state one.
truncated
readonlytruncated:boolean
Defined in: backend/src/knowledge/graph-retrieval.ts:123
True when the traversal hit a bound. Reported, never silent — the same rule pagination follows.