From: JoranDox (@JoranDox) <noreply+JoranDox@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #878: partial index "USING hnsw (embedding vector_cosine_ops) WHERE (some_bool = true)" gives partial results as if filtering
Date: Wed, 23 Jul 2025 11:56:59 +0000
Message-ID: <gh-pgvector-pgvector-878-c3107528939@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-878@github.com>
References: <gh-pgvector-pgvector-878@github.com>
After more testing I think the filtering is a red herring because I see the same effect on using the not-partitioned HNSW index on the embedding column, so do I understand correctly that HNSW is not useful in cases where the LIMIT on your query is a sizeable chunk of the total candidates? I.e. it's fine for a top-10 search, but sucks in a top-100 search in 300 candidates?