telys_build_lexical
Build and persist a BM25 lexical index for an existing collection, enabling lexical search after bulk ingestion.
Instructions
Fit the BM25 lexical index over the collection's retained tokens and persist it; the collection must have been created with lexical=True. This builds the lexical BM25 index; telys_build_ivf builds the IVF vector index. 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection": "<collection>"
},
"name": "telys_build_lexical"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | BM25 document-length normalization | |
| k1 | No | BM25 term-frequency saturation | |
| collection | Yes | name of an existing collection created with lexical=True |