pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #461: Increase max vectors dimension limit for index
Date: Fri, 16 Feb 2024 15:35:16 +0000
Message-ID: <gh-pgvector-pgvector-461-c1948641449@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-461@github.com>
References: <gh-pgvector-pgvector-461@github.com>

@VincentEggerling

> Why do we have these limits ?

There's been quite a bit of discussion on this topic -- the primary limitation is due to the default size of the PostgreSQL page (8KB), which is not adjustable, which constrains the number of 4-byte floats you can store on a page. There are some branches that address this (e.g. the `tiny` and `half` branch) that lets you store vectors with more dimensions but a smaller attribute value. There's also an open idea on implementing quantization, particularly product quantization (https://github.com/pgvector/pgvector/issues/27).

> How would performance scale if the limited were, say, doubled ?

Just increasing the limit would not decrease performance 😉 For storing and searching over vectors with more dimensions, it depends on a variety of factors, including the size of the dimensions or if any additional storage techniques are used.

> Is there a plan to increase the limits, considering other vector database products offer up to 32768 dimensions (or even more) for indexed vector 

Yes, but part of that will drive that is  understanding what use cases require that increase, and the different tradeoffs that come with increasing the indexable dimensionality. 

view thread (61+ messages)  latest in thread

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