FOMO Daily
Feed
Neon·

BM25 is only as good as your tokens

DatabasesNeonBM25TokenizationSearch

TL;DR

BM25 search misses relevant results when abbreviations, accents, and filler words produce mismatched tokens, while managed Postgres makes file-based custom dictionaries impractical. Neon's lakebase_tokenizer moves synonyms and stop words into SQL tables, with configurable accent handling and stemming, so search configuration survives compute restarts and follows database branches. In a support-ticket example, this expanded a query’s matches from one ticket to three and ranked the most relevant ticket first.

Read the original post Sign in to mark as read or skip