Skip to content

Interface: CorpusBridgeEdge

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CorpusBridgeEdge

Defined in: src/types/corpus.ts:84

A weighted edge between two documents.

weight is the total number of shared entities before per-edge truncation, so it can exceed sharedEntities.length when maxSharedEntitiesPerEdge bites.

a: string

Defined in: src/types/corpus.ts:86

Document id of the first endpoint.


b: string

Defined in: src/types/corpus.ts:88

Document id of the second endpoint.


sharedEntities: CorpusSharedEntity[]

Defined in: src/types/corpus.ts:92

The shared entities, most-mentioned first, truncated per edge.


weight: number

Defined in: src/types/corpus.ts:90

Total number of shared entities (before per-edge truncation).