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 #259: Understanding HNSW + filtering
Date: Thu, 14 Sep 2023 14:58:03 +0000
Message-ID: <gh-pgvector-pgvector-259-c1719622821@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>

Forgot to post this the other day, but this is what I was thinking around HNSW -- effectively keeping two pairs of links in a "multi-column" style index. The first set of links connect every vector in the index. The second set of links are specific to a particular filter (e.g. `cat_id`). That way, if you're searching on a "filter", you're searching on those links directly related to the filter.

![hnsw-cat](https://github.com/pgvector/pgvector/assets/1694/b22aa3e6-e9c5-4356-8086-e4a1eac6d48a)


view thread (90+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-259-c1719622821@github.com>
Permalink:  ../gh-pgvector-pgvector-259-c1719622821@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