Skip to content
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

FEATURE: Decoder for pgvector #57

Merged
merged 1 commit into from Aug 31, 2023
Merged

FEATURE: Decoder for pgvector #57

merged 1 commit into from Aug 31, 2023

Conversation

xfalcox
Copy link
Member

@xfalcox xfalcox commented Aug 29, 2023

This PR adds automatic decoding of the pgvector vector column type into Ruby float arrays only if your project also imports the pgvector gem, where the decoders definition live.

With this change logs will not have instances of the below warning

Warning: no type cast defined for type "vector" format 0 with oid 16391. Please cast this type explicitly to TEXT to be safe for future changes.

@SamSaffron
Copy link
Member

nice one!

@SamSaffron SamSaffron merged commit 7e0d428 into main Aug 31, 2023
5 checks passed
@SamSaffron SamSaffron deleted the pgvector branch August 31, 2023 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants