https://github.com/spring-projects/spring-ai/blob/9e18652bb8251abbc3cb75a380d6eb2accc762ea/vector-stores/spring-ai-neo4j-store/src/main/java/org/springframework/ai/vectorstore/Neo4jVectorStore.java#L125
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 preserved
Comment From: meistermeier
It was there since the beginning, but I have no exact idea why we / I did this anymore. I think it was because we wanted to persist the document as it comes in . But if it makes trouble, I have no problem in removing those lines and compress it.
Comment From: enricorampazzo
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
Comment From: meistermeier
There is now the PR (#2070) for this. I also would say it's ok to keep the existing properties.
Comment From: sobychacko
Looks good. Merged the changes upstream. Thanks for looking into it.