pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feedFrom: spyderdfx (@spyderdfx) <noreply+spyderdfx@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #972: Binary vectors - querying the nearest neighbors by Hamming distance with HNSW gives wrong results
Date: Tue, 31 Mar 2026 12:47:58 +0000
Message-ID: <gh-pgvector-pgvector-972-c4162404844@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-972@github.com>
References: <gh-pgvector-pgvector-972@github.com>
I tried to recreate the index with non-default params:
`CREATE INDEX ON image_hashes USING hnsw (vector_binary bit_hamming_ops) WITH (m = 16, ef_construction = 200);`
Results changed but still not good:
```sql
SELECT (vector_binary <~> '<576 bits omitted>') AS distance FROM image_hashes ORDER BY (vector_binary <~> '<576 bits omitted>') LIMIT 10;
distance
----------
241
241
245
245
246
247
247
248
248
249
(10 rows)
```
view thread (10+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-972-c4162404844@github.com>
Permalink: ../gh-pgvector-pgvector-972-c4162404844@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