Skip to main content

KeywordSearchHit

@forge/monorepo


@forge/monorepo / backend/src / KeywordSearchHit

Type Alias: KeywordSearchHit

KeywordSearchHit = object

Defined in: backend/src/persistence/index.ts:1518

Properties

chunk

readonly chunk: KnowledgeChunk

Defined in: backend/src/persistence/index.ts:1519


score

readonly score: number

Defined in: backend/src/persistence/index.ts:1527

0–1, higher is a better lexical match.

Normalised so a caller fusing this with a vector score does not have to know that one is a cosine similarity and the other a ts_rank_cd — two unbounded, incomparable scales fused directly would let whichever happened to be larger dominate.