pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #799: why the indexing dimension limits are 2000?
3+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #799: why the indexing dimension limits are 2000?
@ 2025-03-12 04:44  "XBsleepy (@XBsleepy)" <noreply+XBsleepy@github.com>
  0 siblings, 0 replies; 3+ messages in thread

From: XBsleepy (@XBsleepy) @ 2025-03-12 04:44 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

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.

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

* Re: [pgvector/pgvector] issue #799: why the indexing dimension limits are 2000?
@ 2025-03-12 04:49  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-03-12 04:49 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @XBsleepy, see #461.

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

* Re: [pgvector/pgvector] issue #799: why the indexing dimension limits are 2000?
@ 2025-03-12 04:49  "ankane (@ankane)" <noreply+ankane@github.com>
  1 sibling, 0 replies; 3+ messages in thread

From: ankane (@ankane) @ 2025-03-12 04:49 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:[~2025-03-12 04:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-12 04:44 [pgvector/pgvector] issue #799: why the indexing dimension limits are 2000? "XBsleepy (@XBsleepy)" <noreply+XBsleepy@github.com>
2025-03-12 04:49 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-03-12 04:49 ` "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