From: pashkinelfe (@pashkinelfe) <noreply+pashkinelfe@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Tue, 12 Sep 2023 18:47:07 +0000
Message-ID: <gh-pgvector-pgvector-259-c1716245776@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
@jkatz It's an interesting idea! Though there is one thing that I don't quite catch: how to combine "nearness" in two different spaces. Furthermore, nearness in embedding HNSW component is inexact, but a link lost (or unfollowed at scan)between `category_id` makes everything inexact. I'm not sure it's completely unacceptable but can introduce some behavior that is not expected under "filtering by other column" term.
It needs further thought I suppose, it seems hard to implement combined btree+hnsw in one index. Filtering by included column seems much clearer.