pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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: Fri, 16 Aug 2024 02:33:32 +0000
Message-ID: <gh-pgvector-pgvector-259-c2292622861@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>

I am also facing the same issue.

As the rows became more than 1 million, the search was slowing down, so I added the hnsw index to vector.

And when I sent the query below, it returned 0 results.

```
SELECT        
	(sparse <=> :lexicalVectorObject) AS distance			
FROM 
    tablexxxx
WHERE
    user_id = 'xxxxx'
ORDER BY (sparse <=> :lexicalVectorObject)
LIMIT 30
```

However, removing the WHERE clause returns the desired 30 results.
I am having trouble searching large amounts of data due to this issue.

I saw that this and similar issues are being discussed on https://github.com/pgvector/pgvector/issues/263.
I don't know where to put this, so I'm leaving it here.

view thread (90+ messages)  latest in thread

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