Interface: BM25Config
Defined in: packages/agentos/src/cognition/rag/search/BM25Index.ts:73
Configuration options for the BM25 index.
Interface
BM25Config
Properties
b?
optionalb:number
Defined in: packages/agentos/src/cognition/rag/search/BM25Index.ts:77
Document length normalization factor. 0 = no normalization, 1 = full normalization. Range: 0-1.
k1?
optionalk1:number
Defined in: packages/agentos/src/cognition/rag/search/BM25Index.ts:75
Term saturation parameter. Higher values increase the influence of term frequency. Range: 1.2-2.0 typical.
pipeline?
optionalpipeline:TextProcessingPipeline
Defined in: packages/agentos/src/cognition/rag/search/BM25Index.ts:84
Optional text processing pipeline for tokenization. When provided, replaces the built-in regex tokenizer with configurable stemming, lemmatization, and stop word handling.
See
createRagPipeline from nlp for the recommended default.