pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: kevinhu (@kevinhu) <noreply+kevinhu@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #793: Casting bit vectors to floating-point representations
Date: Wed, 05 Mar 2025 06:51:43 +0000
Message-ID: <gh-pgvector-pgvector-793@github.com> (raw)

I'm wondering if there is a recommended method for casting a `bit` type to `vector` or `halfvec` types. When working with binary embeddings, a common step is to rescore by taking the dot product of a float-based query vector with binary candidates. A cast would make this an easy operation to perform within Postgres.

view thread (3+ messages)  latest in thread

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