telys_search_lexical
Find exact keyword matches with BM25 lexical search when semantic search is fuzzy, retrieving identifiers and rare tokens by query from collections with a built lexical index.
Instructions
On-device BM25 lexical (keyword) search — exact-term matching for identifiers and rare tokens where semantic search is fuzzy. Requires the collection to have been created with lexical=True AND telys_build_lexical to have run, otherwise the call fails. Required: collection, query. Optional: top_k (default 5), where (single-key equality filter), explain (default false; include per-hit score explanations). Fails when the collection does not exist or the lexical index was never built.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| where | No | optional single-key equality filter | |
| explain | No | ||
| collection | Yes |