telys_build_lexical
Build a BM25 lexical index for a collection after bulk ingestion, persisting it for later lexical search. Requires the collection; tunes term-frequency saturation with k1 and length normalization with b.
Instructions
Fit the BM25 lexical index over the collection's retained tokens and persist it; the collection must have been created with lexical=True. Run after bulk ingestion and before telys_search_lexical. Required: collection. Optional: k1 (default 1.8; term-frequency saturation) and b (default 1.0; document-length normalization). Fails when the collection does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | ||
| k1 | No | ||
| collection | Yes |