BM25 in PostgreSQL
blog.vectorchord.ai
BM25 in PostgreSQL
1–10 of 34 posts
Re: BM25 in PostgreSQL
#2Re: BM25 in PostgreSQL
#3But, it appears that we are hitting our limits at this point. We have a table with tens of millions of rows and the use case is that it's faceted search.
Something like Zillow, with tends of millions of listings and tens of columns that can be queried. I'm having a tough time scaling it up. Does anyone have experience building something like that in pg?
Re: BM25 in PostgreSQL
#4This looks very neat. In our company, for the past 10 years I've bet heavily on Postgres have not allowed any other databases to be used. Stuff like this makes me hope I can continue to do so as our database is growing. But, it appears that we are hitting our limits at this point. We have a table with tens of millions of rows and the use case is that it's faceted search. Something like Zillow, with tends of millions…
Re: BM25 in PostgreSQL
#5Any comparison results in terms of performance vs accuracy with: https://github.com/paradedb/paradedb/tree/dev/pg_search
"""Another solution is ParadeDB, which pushes full-text search queries down to Tantivy for results. It supports BM25 scoring and complex query patterns like negative terms, aiming to be a complete replacement for ElasticSearch. However, it uses its own unique syntax for filtering and querying and delegates filtering operations to Tantivy instead of relying on Postgres directly. Its implementation requires several hooks into Postgres' query planning and storage, potentially leading to compatibility issues."""
So it is more apples to red than equal comparison.
Re: BM25 in PostgreSQL
#6Re: BM25 in PostgreSQL
#7Re: BM25 in PostgreSQL
#8Re: BM25 in PostgreSQL
#9This would be rad
Re: BM25 in PostgreSQL
#10This looks very neat. In our company, for the past 10 years I've bet heavily on Postgres have not allowed any other databases to be used. Stuff like this makes me hope I can continue to do so as our database is growing. But, it appears that we are hitting our limits at this point. We have a table with tens of millions of rows and the use case is that it's faceted search. Something like Zillow, with tends of millions…
pg_bm25 - Optimized for faceted search & PGroonga - Full-text search with JSONB support