pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #958: PGVector incompatible with BM42
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #958: PGVector incompatible with BM42
@ 2026-02-20 14:24  "enrico-stauss (@enrico-stauss)" <noreply+enrico-stauss@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: enrico-stauss (@enrico-stauss) @ 2026-02-20 14:24 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I was trying to evaluate whether to move a vector index from Qdrant to a pre-existing Postgres DB with PGVector. Down the road I realized that BM42 uses the full 32bit (signed -> 2^32 - 1) vocabulary size which exceeds the sparsevec limitation of 1_000_000_000.

I just wanted to make you aware of this limitation, it probably is an easy fix (or not) and would enable a new use-case. The documentation on BM42 is admittedly also not vey clear. From [this page](https://qdrant.tech/articles/modern-sparse-neural-retrieval/) I assumed that the vocabulary size would be reflect the underlying BERT tokenizer's vocabulary (30_522) but that does not seem to be the case after my empirical tests.

Hope it helps :)
Kind Regards

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #958: PGVector incompatible with BM42
@ 2026-02-20 17:58  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2026-02-20 17:58 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @enrico-stauss, thanks for sharing. I don't think this is common enough to support, but may revisit the limit in the future if there are other use cases.

^ permalink  raw  [nested|flat] 3+ messages in thread

* Re: [pgvector/pgvector] issue #958: PGVector incompatible with BM42
@ 2026-02-20 17:58  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2026-02-20 17:58 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2026-02-20 17:58 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-02-20 14:24 [pgvector/pgvector] issue #958: PGVector incompatible with BM42 "enrico-stauss (@enrico-stauss)" <noreply+enrico-stauss@github.com>
2026-02-20 17:58 ` "ankane (@ankane)" <noreply+ankane@github.com>
2026-02-20 17:58 ` "ankane (@ankane)" <noreply+ankane@github.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox