From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Wed, 02 Oct 2024 20:45:21 +0000
Message-ID: <gh-pgvector-pgvector-678-c2389665802@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>
Iterative search has a much lower impact on recall for IVFFlat (which makes sense).
Same dataset as https://github.com/pgvector/pgvector/issues/678#issuecomment-2380359173 with 1500 lists:
Probes | Recall (non-iter) | Recall (strict) | Recall (relaxed)
--- | --- | --- | ---
1 | 46.9 | 46.9 | 55.5
40 | 75.6 | 75.6 | 78
100 | 81.5 | 81.5 | 83.3
200 | 86.6 | 86.6 | 87.4
Edit: Added strict, which does pretty much no better than non-iterative (at the expense of slow queries), since most of the tuples after the first iteration are discarded.