From: uasan (@uasan) <noreply+uasan@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #829: Types description for Postgres binary protocol
Date: Fri, 25 Apr 2025 10:45:49 +0000
Message-ID: <gh-pgvector-pgvector-829-c2830069339@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-829@github.com>
References: <gh-pgvector-pgvector-829@github.com>
@jkat, You might be interested, JS clients for which adapters for vector types are written, work in the text protocol of Postgres, this is not effective, here is an example of the type halfvec 1536 dim:
Text form: ±19000 bytes.
Binary form: 3076 bytes.
That's why we wrote our own client to work in the binary protocol, by the way, the structure of your vector types is very simple and easy to implement, thank you.