From: cho-thinkfree-com (@cho-thinkfree-com) <noreply+cho-thinkfree-com@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Mon, 19 Aug 2024 02:17:17 +0000
Message-ID: <gh-pgvector-pgvector-259-c2295542029@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
I have very little knowledge about databases. I'm just happy to be able to use such a great open-source project. :-)
I'm also very grateful that you take the time to respond to my posts and share your opinions.
When searching without an index in a table with millions of rows, the speed was too slow.
So I thought, "If I use attachment = FALSE, which removes attachments, perhaps searching over fewer rows might improve the speed?" With my limited knowledge, I wrote the query in that way.
Thank you for the valuable information that it might actually be better to drop the index.
I’m trying to create a service that searches for documents within a table where embedding information is stored, across n groups (UUIDs) and m categories (UUIDs).
In my current situation, groups and categories can be dynamically added.
Additionally, depending on the situation, there are cases where queries are made at once without distinguishing between groups and categories
In this case, I’m wondering if it’s a good idea to create indexes for all n groups (UUIDs) and m categories (UUIDs).
For example, something like this:
(Each time a group or category is added...)
`CREATE INDEX ON ... USING hnsw(...) WHERE (group_id = UUID and category_id = UUID);`
I'm concerned that my questions might be disrupting the current issue thread. I apologize in advance if that's the case.