API reference · Kjarni 0.2.7

Interface: RankedDocument

kjarni-wasm • Docs


kjarni-wasm / RankedDocument

One document after reranking.

Properties

index

index: number

Its position in the list that was passed in.

Defined in

protocol.ts:27


score

score: number

The cross-encoder's raw score; higher is more relevant.

Defined in

protocol.ts:29


text

text: string

The document text.

Defined in

protocol.ts:31

Kjarni runs the same engine on every platform: