From 8d219ffa3258b9bbb0eadd01ab5ba7cf10f88ca3 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 24 Apr 2025 11:09:34 +0800 Subject: [PATCH] Fix: upsert_edge funtion can not create properties with PostgreSQL AGE storage --- lightrag/kg/postgres_impl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index 54722eb0..fb11b31c 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -1463,12 +1463,14 @@ class PGGraphStorage(BaseGraphStorage): MATCH (target:base {entity_id: "%s"}) MERGE (source)-[r:DIRECTED]-(target) SET r += %s + SET r += %s RETURN r $$) AS (r agtype)""" % ( self.graph_name, src_label, tgt_label, edge_properties, + edge_properties, # https://github.com/HKUDS/LightRAG/issues/1438#issuecomment-2826000195 ) try: