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.