Neo4j module: remove unnecessary property removal.

Closes #1932

Signed-off-by: Gerrit Meier <meistermeier@gmail.com>
This commit is contained in:
Gerrit Meier
2025-01-15 12:38:34 +01:00
committed by Soby Chacko
parent 7d53ef2056
commit 387de95ac5

View File

@@ -207,12 +207,7 @@ public class Neo4jVectorStore extends AbstractObservationVectorStore implements
var statement = """
UNWIND $rows AS row
MERGE (u:%s {%2$s: row.id})
ON CREATE
SET u += row.properties
ON MATCH
SET u = {}
SET u.%2$s = row.id,
u += row.properties
WITH row, u
CALL db.create.setNodeVectorProperty(u, $embeddingProperty, row[$embeddingProperty])
""".formatted(this.label, this.idProperty);