Fix the merge bug with Neo4j
This commit is contained in:
parent
91f96f2a8b
commit
ea05b8e49f
1 changed files with 6 additions and 0 deletions
|
|
@ -2622,6 +2622,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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue