Merge pull request #1053 from HKUDS/dev3

Fix the merge bug with Neo4j
This commit is contained in:
zrguo
2025-03-11 17:33:37 +08:00
committed by GitHub

View File

@@ -2576,6 +2576,12 @@ class LightRAG:
# 9. Delete source entities
for entity_name in source_entities:
if entity_name == target_entity:
logger.info(
f"Skipping deletion of '{entity_name}' as it's also the target entity"
)
continue
# Delete entity node from knowledge graph
await self.chunk_entity_relation_graph.delete_node(entity_name)