pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #671: HNSW + Filter inconsistent result issue (based on HNSW index used vs unused)
Date: Wed, 11 Sep 2024 13:58:06 +0000
Message-ID: <gh-pgvector-pgvector-671-c2343756536@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-671@github.com>
References: <gh-pgvector-pgvector-671@github.com>

There is a long discussion about this here: https://github.com/pgvector/pgvector/issues/244 - in short, what's happening is that the index is returning rows that don't match the filters. In addition to ongoing development, there are a number of whats to handle this, including:

1. Use a different index for the filtering (e.g. B-tree [the default PostgreSQL index] / GIN etc.) - based on selectivity (the number of results returned), this may be faster than the vector index, and also provide 100% recall
2. Set `hnsw.ef_search` to a higher value to allow more results ot be returned


view thread (13+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-671-c2343756536@github.com>
Permalink:  ../gh-pgvector-pgvector-671-c2343756536@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox