pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feedFrom: 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: Sat, 30 Mar 2024 16:50:02 +0000
Message-ID: <gh-pgvector-pgvector-461-c2028267087@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-461@github.com>
References: <gh-pgvector-pgvector-461@github.com>
@wmwsagara For your proposals, if we look at the tests in https://github.com/pgvector/pgvector/issues/326#issuecomment-2027930516 we see that the fp16 quantization proposal that allows for increasing dims to 4,000 has almost no impact on recall.
While the PostgreSQL table ("heap") block size is adjustable, the index block size isn't. [This thread](https://www.postgresql.org/message-id/flat/CAAjvh2Q6MVRip0AJuWe0TyHjhujmpJHFAmWtXZMefCVnZDJ17w%40mai...) outlines where the restriction is, and the effort it'd take to adjust.
At [PGConf.dev 2024](https://2024.pgconf.dev/), I'm planning to [discuss this topic and some proposals to better address this upstream](https://www.pgevents.ca/events/pgconfdev2024/schedule/session/1-vectors-how-to-better-support-a-nast...).
"Proposal 3" is somewhat similar to HOT chaining, which I [lightly discussed in 2023](https://www.slideshare.net/jkatz05/vectors-are-the-new-json-in-postgresql). While this would allow for storing larger dimensions, it itself has tradeoffs as index lookups require fetching multiple pages per comparison. We would likely want some methodology where we could fetch pages in parallel, but the overhead of that could be too much at the moment and requires more research.
view thread (61+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-461-c2028267087@github.com>
Permalink: ../gh-pgvector-pgvector-461-c2028267087@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