yangdx commited on
Commit
44acb7b
·
1 Parent(s): 52c5855

Fix: upsert_edge funtion can not create properties with PostgreSQL AGE storage

Browse files
Files changed (1) hide show
  1. lightrag/kg/postgres_impl.py +2 -0
lightrag/kg/postgres_impl.py CHANGED
@@ -1463,12 +1463,14 @@ class PGGraphStorage(BaseGraphStorage):
1463
  MATCH (target:base {entity_id: "%s"})
1464
  MERGE (source)-[r:DIRECTED]-(target)
1465
  SET r += %s
 
1466
  RETURN r
1467
  $$) AS (r agtype)""" % (
1468
  self.graph_name,
1469
  src_label,
1470
  tgt_label,
1471
  edge_properties,
 
1472
  )
1473
 
1474
  try:
 
1463
  MATCH (target:base {entity_id: "%s"})
1464
  MERGE (source)-[r:DIRECTED]-(target)
1465
  SET r += %s
1466
+ SET r += %s
1467
  RETURN r
1468
  $$) AS (r agtype)""" % (
1469
  self.graph_name,
1470
  src_label,
1471
  tgt_label,
1472
  edge_properties,
1473
+ edge_properties, # https://github.com/HKUDS/LightRAG/issues/1438#issuecomment-2826000195
1474
  )
1475
 
1476
  try: