From: knizhnik (@knizhnik) <noreply+knizhnik@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Sat, 28 Oct 2023 18:49:38 +0000
Message-ID: <gh-pgvector-pgvector-259-c1783896183@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
It will solve the problem if
1. You can create partition for each category (this number can be very large)
2. There are no queries involving multiple partitions, i.e. `select * from document where category = in (1.2.3) order by embedding <-> ...`