pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: XBsleepy (@XBsleepy) <noreply+XBsleepy@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #799: why the indexing dimension limits are 2000?
Date: Wed, 12 Mar 2025 04:44:19 +0000
Message-ID: <gh-pgvector-pgvector-799@github.com> (raw)

I have been exploring this excellent repository and have a question: Why is the indexing dimension limit set to 2000?

Would it be possible to manually increase this limit by modifying a parameter at compile time?

In my experience, large datasets typically have dimensions like 1024 or 768, which fit well within the 2000-dimensional limit. However, if future embedding models start producing vectors with more than 2000 dimensions and this becomes mainstream, how complex would it be to modify this limit? I have come across research papers where embedding models generate vectors with dimensions as high as 10,000.

Additionally, 2000 feels like an arbitrary "magic number." Why was this specific limit chosen instead of 2048 or another round number? For example, [Faiss](https://github.com/facebookresearch/faiss/) sets a limit of 2048 for GPU search, likely due to GPU constraints.

Currently, we support indexing higher-dimensional data through Binary Quantization. Is this primarily a trade-off between recall and speed? (It seems that both PQ and BQ sacrifice a significant amount of precision.)

This question has been puzzling me for a while, and I would really appreciate any insights from the community.

view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-799@github.com>
Permalink:  ../gh-pgvector-pgvector-799@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