Skip to content

lexical: SQLite FTS5 backend behind lexical= (#195 slice 2) - #203

Merged
thorwhalen merged 2 commits into
masterfrom
burn/ir-195b
Dec 1, 2026
Merged

thorwhalen merged 2 commits into
masterfrom
burn/ir-195b

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Refs #195. search(..., lexical="fts5"): a persisted index (one SQLite file in the corpus directory, in-memory for an in-memory store), Porter-stemmed matching, optional last-word prefix (lexical_options={"prefix": True}), match="any"|"all". Synced incrementally on first query per open corpus (per-record text-hash stamp; batched, single-flight). Query words are always quoted, so no FTS5 syntax is exposed. Default stays "bm25"; nothing changes unless asked. Scores are on SQLite bm25 scale (floors calibrated for bm25 do not apply; the calibration key and CLI flag are the next slice). Deviation from the issue comment: the stamp is a hash of the record text, not the ledger version, because the records are already in memory and it also catches strategy changes.

…ts5", lexical_options={prefix, match}) (#195, slice 2)
…esults cut to current candidates, schema/tokenizer version, clear FTS5-missing error, bm25= not passed to other backends (review fixes)
@thorwhalen
thorwhalen merged commit c1ee9a1 into master Dec 1, 2026
30 checks passed
@thorwhalen
thorwhalen deleted the burn/ir-195b branch December 1, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant