-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for pgvector #612
Comments
How exactly you envision support for PG Vector with a library that requires you to provide SQL? |
@mp911de how do you support custom types today? The only "support" that is possible in pgjdbc is to allow sending and receiving the vector in binary. Is that possible ? Pretty significant performance possible with binary mode. |
We have a Codec API that can be extended by the driver or any external Codec r2dbc-postgresql/src/main/java/io/r2dbc/postgresql/codec/BuiltinDynamicCodecs.java Lines 55 to 65 in 543f5cc
By parsing type/OID information, one could come up with any kind of wrapper that makes sense. |
Cool, so there are significant savings to be had by sending and receiving vectors in binary! |
Yeah, exactly it, @mp911de. It would be nice to have a built-in codec for pgvector, given the popularity of LLMs nowadays. |
Thanks for clarifying. It sounded at first like an object mapper feature.
Am 5. Dez. 2023, 18:21 +0100 schrieb Liem Nguyen ***@***.***>:
… Yeah, exactly it, @mp911de. It would be nice to have a built-in codec for pgvector, given the popularity of LLMs nowadays.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
FWIW, I didn't implement it in pgjdbc, rather in pg_vector java support. I don't think it matters where it's implemented. |
[closes #612] Signed-off-by: Mark Paluch <[email protected]>
That's in place now, including support for 1-dimensional vector arrays (array of vectors). |
Please give the new |
cool! |
Working as designed! @mp911de you rock! When is 1.0.3 release planned for? |
I would want to wait for today's Reactor release before shipping a new release. |
Update reflection config for Vector. [#612] Signed-off-by: Mark Paluch <[email protected]>
Update reflection config for Vector. [#612] Signed-off-by: Mark Paluch <[email protected]>
Apologies for the comment here vs. a bug report, but PostgreSQL 8.2 and below to not have AWS Redshift is based on PostgreSQL 8.0.2: As such, this driver can no longer be used to connect to AWS Redshift. |
Please downgrade to 1.0.2 for the time being. I filed #621 to fix the regression. |
Feature Request
Is your feature request related to a problem? Please describe
Support for pgvector.
Describe the solution you'd like
Support for pgvector similar to Hibernate: https://docs.jboss.org/hibernate/orm/6.4/userguide/html_single/Hibernate_User_Guide.html#vector-module
The text was updated successfully, but these errors were encountered: