Skip to main content

GraphChunkHit

@retinue/monorepo


@retinue/monorepo / backend/src / GraphChunkHit

Type Alias: GraphChunkHit

GraphChunkHit = object

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

A chunk reached through the graph, with the reason it was reached.

Properties​

chunk​

readonly chunk: KnowledgeChunk

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


score​

readonly score: number

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

0–1 relative to the best hit in this result, as every other mode's score is.


viaEntities​

readonly viaEntities: readonly string[]

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

The entities that led here, so the answer can say why this chunk is relevant.