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
commit 11a5a04c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)