pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: gerrylwk (@gerrylwk) <noreply+gerrylwk@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #961: Feature Request: Jaccard Distance for Integer Arrays
Date: Wed, 04 Mar 2026 05:45:58 +0000
Message-ID: <gh-pgvector-pgvector-961@github.com> (raw)

Hello, 

I'm exploring vector databases to see if there's any that can serve this particular purpose and pgvector looks promising:
I have MinHash Signatures (e.g. fixed length M array of integers). I want to perform jaccard distance query where I get other signatures that are of at least a certain similarity threshold when compared to a query signature.

I've looked at bit vectors since jaccard distance operator is available for it and I think it's the wrong data type for me (Pls correct me if I'm wrong), since the jaccard distance operator works on bit vector '101' but not an array of integers '[12345, 6789, 888]'

I initially tried normalising the integer vectors into floats, but cosine similarity does not give me the exact results I want. I'm trying to leverage any internal jaccard distance indexing that pgvector has so that I can avoid doing it myself (extracting then using python).

If anyone has any suggestions pls do share! :)

view thread (3+ messages)  latest in thread

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