From: digoal (@digoal) <noreply+digoal@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #946: add sample support. Usage
Date: Tue, 13 Jan 2026 01:44:23 +0000
Message-ID: <gh-pgvector-pgvector-946-c3741394887@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-946@github.com>
References: <gh-pgvector-pgvector-946@github.com>
Thanks for the feedback. I understand the concern about commonality. The motivation comes from scenarios with large datasets: when lists is too small, the centroid calculation becomes less precise, leading to poor partitioning.
You can easily reproduce this with the following test:
Generate 1,000 random base vectors.
For each base vector, create 999 variants using Gaussian perturbation (total 1M vectors).
Build an IVFFlat index and compare lists=100 vs. lists=1000.
In my tests, at probe=1, the recall with lists=1000 is significantly higher than with lists=100. This flexibility allows users to optimize the Voronoi cells for specific data distributions.