# VectorChord-bm25

> Native BM25 ranking index in PostgreSQL

Source: https://talira.ai/catalog/vectorchord-bm25-rxf61772
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [search / full text](https://talira.ai/categories/search/full-text), [databases / postgres / extensions](https://talira.ai/categories/databases/postgres/extensions)
- Platforms: linux, docker[^1]
- Licence: AGPL-3.0 OR Elastic-2.0[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free under AGPL-3.0 or the Elastic License 2.0, your choice.
- Free tier: yes[^2]
- Self-hostable: yes[^1]
- Backed by: [TensorChord](https://talira.ai/orgs/tensorchord.md)

VectorChord-bm25 is a [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md) extension from TensorChord that ranks documents by BM25 with a Block-WeakAnd index it implemented from scratch. Text is turned into a `bm25vector` (a sparse vector of token IDs and counts) by its companion extension pg_tokenizer, using a pre-trained tokenizer such as BERT's or one trained on your own corpus, then queried with the `<&>` operator and `ORDER BY ... LIMIT`. It's dual-licensed under AGPL-3.0 or the Elastic License 2.0, and the easiest way to run it is the vchord-suite [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image, which bundles it with the VectorChord vector search extension. In 2026 the repository moved from the tensorchord organization to a supervc-stack account, its last release was 0.3.0 in December 2025, and the vectorchord.ai site has lapsed.

## Links

- GitHub: https://github.com/supervc-stack/VectorChord-bm25

## Problems it solves

- BM25 ranking in Postgres with my own tokenizer, such as a BERT vocabulary
- store each document as a sparse BM25 vector in Postgres next to its embedding
- train a tokenizer on my own corpus for keyword ranking inside Postgres
- keyword search over Chinese text in Postgres using jieba word segmentation
- score my RAG chunks by keyword relevance inside the database, next to their embeddings
- a Postgres Docker image with vector search and BM25 keyword ranking ready to use

## Features

- bm25vector type: token IDs and frequencies stored as a sparse vector
- bm25 index with the Block-WeakAnd algorithm and a negative-score `<&>` operator for ascending ORDER BY
- tokenizers from pg_tokenizer: pre-trained models (BERT, llmlingua2, gemma2b) or custom models trained on your corpus
- text analyzers with Unicode segmentation, stopwords and Porter2 stemming
- jieba pre-tokenizer for Chinese
- triggers that keep the bm25vector column in step with the source text
- vchord-suite Docker image for PostgreSQL 17 and 18 with VectorChord and pg_tokenizer

## Limitations

- Doesn't return more than bm25_catalog.bm25_limit results from an index scan (100 by default): raise it for larger LIMITs or strict filters[^1]
- Doesn't come tested beyond English: its makers have only tested English, and other languages need a tokenizer with a larger vocabulary[^1]

## Trust

Overall: 0.27 out of 1.
Signals: backing 0.30, extensibility 0.00.

- backed by TensorChord

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md)

## Alternatives

- [pg_textsearch](https://talira.ai/catalog/pg-textsearch-prjz09aa.md): PostgreSQL extension for BM25 relevance-ranked full-text search
- [ParadeDB](https://talira.ai/catalog/paradedb-95q504ea.md): Postgres for full-text search, vector retrieval and aggregations, as an extension (pg_search)

## Sources

[^1]: https://github.com/supervc-stack/VectorChord-bm25 (checked 20 Nov 2026)
[^2]: https://github.com/supervc-stack/VectorChord-bm25/blob/main/LICENSE (checked 20 Nov 2026)
