pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #829: Types description for Postgres binary protocol 5+ messages / 2 participants [nested] [flat]
* [pgvector/pgvector] issue #829: Types description for Postgres binary protocol @ 2025-04-24 19:08 "uasan (@uasan)" <noreply+uasan@github.com> 0 siblings, 0 replies; 5+ messages in thread From: uasan (@uasan) @ 2025-04-24 19:08 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hey. We use binary protocol in Node.js client for Postgres, I would like to add support for vector types in binary representation to the client, but I can't find a description of binary representation, can you share a description of binary representation for vector, halfvec, sparsevec? Thanks. ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #829: Types description for Postgres binary protocol @ 2025-04-24 19:16 "jkatz (@jkatz)" <noreply+jkatz@github.com> 3 siblings, 0 replies; 5+ messages in thread From: jkatz (@jkatz) @ 2025-04-24 19:16 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @uasan Are you using the pgvector Node.js adapter? https://github.com/pgvector/pgvector-node The binary representations for the vector types are available in the header files: https://github.com/pgvector/pgvector/tree/master/src ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #829: Types description for Postgres binary protocol @ 2025-04-24 19:21 "uasan (@uasan)" <noreply+uasan@github.com> 3 siblings, 0 replies; 5+ messages in thread From: uasan (@uasan) @ 2025-04-24 19:21 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> > @uasan Are you using the pgvector Node.js adapter? https://github.com/pgvector/pgvector-node No, we use our own Node.js client https://github.com/uasan/postgres > The binary representations for the vector types are available in the header files: https://github.com/pgvector/pgvector/tree/master/src Thanks! ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #829: Types description for Postgres binary protocol @ 2025-04-24 19:23 "uasan (@uasan)" <noreply+uasan@github.com> 3 siblings, 0 replies; 5+ messages in thread From: uasan (@uasan) @ 2025-04-24 19:23 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @uasan closed this. ^ permalink raw [nested|flat] 5+ messages in thread
* Re: [pgvector/pgvector] issue #829: Types description for Postgres binary protocol @ 2025-04-25 10:45 "uasan (@uasan)" <noreply+uasan@github.com> 3 siblings, 0 replies; 5+ messages in thread From: uasan (@uasan) @ 2025-04-25 10:45 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@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. ^ permalink raw [nested|flat] 5+ messages in thread
end of thread, other threads:[~2025-04-25 10:45 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2025-04-24 19:08 [pgvector/pgvector] issue #829: Types description for Postgres binary protocol "uasan (@uasan)" <noreply+uasan@github.com> 2025-04-24 19:16 ` "jkatz (@jkatz)" <noreply+jkatz@github.com> 2025-04-24 19:21 ` "uasan (@uasan)" <noreply+uasan@github.com> 2025-04-24 19:23 ` "uasan (@uasan)" <noreply+uasan@github.com> 2025-04-25 10:45 ` "uasan (@uasan)" <noreply+uasan@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