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

Implement Into/TryFrom BoltType for Vec and Into for f64 #11

Merged
merged 3 commits into from
Feb 16, 2023

Conversation

Peikos
Copy link
Contributor

@Peikos Peikos commented Nov 3, 2021

In its current state, neo4rs does not appear to support lists/vectors in node properties and probably elsewhere due to missing Into and TryFrom implementations. This patch firstly adds support for Vec<A> given A is already convertible to/from BoltType. Secondly, an implementation of Into<BoltType> for f64 is provided, as this seems to be already supported the other way around.

These changes together should allow using neo4rs to work with databases containing vector embeddings. Edits by maintainers are on, so feel free to edit anything if it's not up to standard.

@spacestudiodev
Copy link

This is a very important feature.
It would be very useful if it is available for neo4rs

kkharji referenced this pull request in kkharji/neo4jrs Mar 30, 2022
@NeotenicPrimate
Copy link

Hey, any idea when this'll be merged?
I love this lib, incredible work <3

Nuckal777 referenced this pull request in Nuckal777/neo4rs Apr 29, 2022
@Alfiec7113
Copy link

Can we merge this please?
Would be awesome.

@evbo
Copy link

evbo commented Nov 18, 2022

@yehohanan7 @Peikos @Alfiec7113 I'm not sure who is able to merge but this is such a huge enabler of a PR! Now that we're approved think we could push the shiny merge button?

Thank you heaps for this work. It is excellent!

@knutwalker
Copy link
Collaborator

Hey all, sorry for the delay. We moved this repository into the Neo4j Labs organization and we'll be taking over maintenance and development.

@Peikos I made some small tweaks to your implementation, we can merge it, thanks for the initial contribution.

@knutwalker knutwalker merged commit b196877 into neo4j-labs:master Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants