From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #927: Support sq16 in hnsw access method with vector_cosine_ops
Date: Mon, 24 Nov 2025 20:40:14 +0000
Message-ID: <gh-pgvector-pgvector-927-c3572641982@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-927@github.com>
References: <gh-pgvector-pgvector-927@github.com>
Hi @zthhhhh, thanks for the PR.
It'd be good to see how performance compares to the existing quantization options (half-precision indexing and binary quantization with re-ranking), as well as int8 quantization.
Also, please don't reference code from other vector libraries if planning to contribute to pgvector (for licensing).
Re PQ: I think per-vector quantization is likely better for most users since it doesn't require a training step. For limited memory, binary quantization with re-ranking can often be used.