-
Notifications
You must be signed in to change notification settings - Fork 948
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
Adding a Document to a neo4j vector store needlessly overwrites all its properties #1932
Comments
Closes spring-projects#1932 Signed-off-by: Gerrit Meier <[email protected]>
It was there since the beginning, but I have no exact idea why we / I did this anymore. |
Maybe I am using it wrongly, but what I normally do is I create records in a db, with some text I want to embed, and if I want to use that record later, all its properties will be removed, unless I set them in the metadata, which seems clunky, but again, maybe I am missing something |
There is now the PR (#2070) for this. I also would say it's ok to keep the existing properties. |
Looks good. Merged the changes upstream. Thanks for looking into it. |
Closes spring-projects#1932 Signed-off-by: Gerrit Meier <[email protected]> Signed-off-by: StudiousXiaoYu <[email protected]>
Closes spring-projects#1932 Signed-off-by: Gerrit Meier <[email protected]> Signed-off-by: leijendary <[email protected]>
Closes spring-projects#1932 Signed-off-by: Gerrit Meier <[email protected]> Signed-off-by: leijendary <[email protected]>
spring-ai/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/Neo4jVectorStore.java
Line 125 in 9e18652
Because of this line, when an existing node is added to the vector store, its existing properties are deleted, and only those added as document metadata are persisted.
This is needlessly destructive. I suggest to change line 125 to
SET u = properties(u)
so that existing properties are preservedThe text was updated successfully, but these errors were encountered: