From: mgoldenbe (@mgoldenbe) <noreply+mgoldenbe@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Wed, 25 Oct 2023 13:18:28 +0000
Message-ID: <gh-pgvector-pgvector-259-c1779258661@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
@jkatz
I did not understand from your original reply what the current behavior is for the query in the question. Would it do filtering during the KNN search, i.e. similarly to [how it is implemented in Elastic Search](https://discuss.elastic.co/t/pre-filter-knn-vector-search/341585)? And if so, then, when there are thousands of categories, is this approximate KNN search any faster than brute-force exact KNN search within the category of interest?