Skip to main content

Interface: BM25Config

Defined in: packages/agentos/src/rag/search/BM25Index.ts:73

Configuration options for the BM25 index.

Interface

BM25Config

Properties

b?

optional b: number

Defined in: packages/agentos/src/rag/search/BM25Index.ts:77

Document length normalization factor. 0 = no normalization, 1 = full normalization. Range: 0-1.


k1?

optional k1: number

Defined in: packages/agentos/src/rag/search/BM25Index.ts:75

Term saturation parameter. Higher values increase the influence of term frequency. Range: 1.2-2.0 typical.