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] PR #231: Add 8-bit scalar quantization support for `IVF` index.
Date: Fri, 08 Sep 2023 19:24:32 +0000
Message-ID: <gh-pgvector-pgvector-231-c1712126337@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-231@github.com>
References: <gh-pgvector-pgvector-231@github.com>

@hlinnaka SQ is a general technique to reduce the number of bytes required to store a vector, so the short answer is yes.

However, compared to product quantization (PQ), SQ can only reduce the storage so much, as you ultimately can only reduce so many bits before you lose too much information. I agree with Andrew's analysis above (in many ways), but in particular, around focus on PQ first, which should have a more dramatic effect on reducing memory consumption, though we'd have to test for the impact on recall.

view thread (14+ messages)  latest in thread

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