# BM25 is only as good as your tokens

DevFeed: [BM25 is only as good as your tokens](<https://devfeed.tech/articles/bm25-is-only-as-good-as-your-tokens-66824.md>)

Original publisher: [Read original article](<https://neon.com/blog/bm25-is-only-as-good-as-your-tokens>)

Author: Carlota Soto

Published: 2026-10-07T12:00:00Z

Content type: tutorial

Language: en

Sources: [Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>), [concatenation](<https://devfeed.tech/topics/concatenation.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>), [cosine similarity search](<https://devfeed.tech/topics/cosine-similarity-search.md>)

Tags: [bm25](<https://devfeed.tech/tags/bm25.md>), [database](<https://devfeed.tech/tags/database.md>), [lakebase](<https://devfeed.tech/tags/lakebase.md>), [neon](<https://devfeed.tech/tags/neon.md>), [product](<https://devfeed.tech/tags/product.md>), [search](<https://devfeed.tech/tags/search.md>)

## AI overview

The article explains how tokenization shapes BM25 search results in Lakebase Search. It introduces the `lakebase_tokenizer` extension, which lets developers define synonym and stop-word dictionaries in SQL tables, and shows how matching vocabulary can improve ticket search when users use different terms for the same concept. It also describes how token choices affect BM25 relevance scores.

## Source excerpt

Lakebase Search is the search primitive of the Neon backend. One of the best things about it is that it ranks keyword results with BM25. That said, BM25 can only score the terms it's given.