From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #648: Custom scoring with HNSW index
Date: Mon, 19 Aug 2024 18:00:53 +0000
Message-ID: <gh-pgvector-pgvector-648-c2297132587@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-648@github.com>
References: <gh-pgvector-pgvector-648@github.com>
Hi @fede-bello, I think the subquery approach above will be the most efficient, but the merging approach could provide better recall (I'd recommend measuring it for both). Also, the merging approach should be fast if properly indexed and can be parallelized.
Finally, I'd recommend seeing if `m = 16` works for your data, as `m` has a large impact on search time.