pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: 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: Sun, 29 Mar 2026 15:59:45 +0000
Message-ID: <gh-pgvector-pgvector-972-c4150435138@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-972@github.com>
References: <gh-pgvector-pgvector-972@github.com>

So I tried bigger limit
```sql
SELECT  (vector_binary <~> '<576 bits omitted>') AS distance FROM  image_hashes ORDER BY  (vector_binary <~> '<576 bits omitted>') LIMIT 500;
 distance 
----------
      257
      257
..............
      257
      257
      257
(391 rows)
```
It produces only rows with Hamming distance of 257. That looks weird.

view thread (10+ messages)  latest in thread

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