Skip to main content

GraphLocalResult

@forge/monorepo


@forge/monorepo / backend/src / GraphLocalResult

Type Alias: GraphLocalResult

GraphLocalResult = object

Defined in: backend/src/knowledge/graph-retrieval.ts:110

Properties

hits

readonly hits: readonly GraphChunkHit[]

Defined in: backend/src/knowledge/graph-retrieval.ts:111


matchedEntities

readonly matchedEntities: readonly string[]

Defined in: backend/src/knowledge/graph-retrieval.ts:113

The entities the question resolved to. Empty means nothing matched — an honest empty result.


rankedBy

readonly rankedBy: "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

readonly relationships: readonly KnowledgeRelationship[]

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

readonly truncated: 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.