Filtering with hnsw #363
-
It was my understanding that pgvecto.rs solved the problem for filtering with HNSW. I have run the docker container and created a table
I have inserted 1k demo data with letter 'A' and 1k with letter 'B'. When I do HNSW with:
I get only 30 instead of 64. When I run it without the where clause it gives 64, 30 with letter 'B' and 34 with letter 'A'. It uses the HNSW index in both searches. So my conclusion is that this does postfiltering just as pgvector is. Am I doing something wrong or did I misunderstood the filtering of pgvecto.rs? This is from pgvector vs pgvecto.rs q&a:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Are you using 0.2.0? It should work out of the box. The docker tag in readme is old and we haven't updated it yet. You can try |
Beta Was this translation helpful? Give feedback.
Are you using 0.2.0? It should work out of the box. The docker tag in readme is old and we haven't updated it yet. You can try
docker pull tensorchord/pgvecto-rs:pg16-v0.2.0
ordocker pull tensorchord/pgvecto-rs:pg15-v0.2.0