mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-06-30 06:15:17 +08:00
Hotfix ece5903 (#6705)
I'm really sorry, I found that in graphrag/general/extractor.py under def __call__, the line change.removed_nodes.extend(nodes[1:]) causes an AttributeError: 'set' object has no attribute 'extend'. Could you please merge the branch e666528 again? I made some modifications.
This commit is contained in:
parent
d0dca16fee
commit
20b8ccd1e9
@ -193,7 +193,7 @@ class Extractor:
|
|||||||
if len(nodes) <= 1:
|
if len(nodes) <= 1:
|
||||||
return
|
return
|
||||||
change.added_updated_nodes.add(nodes[0])
|
change.added_updated_nodes.add(nodes[0])
|
||||||
change.removed_nodes.extend(nodes[1:])
|
change.removed_nodes.update(nodes[1:])
|
||||||
nodes_set = set(nodes)
|
nodes_set = set(nodes)
|
||||||
node0_attrs = graph.nodes[nodes[0]]
|
node0_attrs = graph.nodes[nodes[0]]
|
||||||
node0_neighbors = set(graph.neighbors(nodes[0]))
|
node0_neighbors = set(graph.neighbors(nodes[0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user