ragflow/graphrag/general
Yue-Lyu123 67330833af
fix: correct [AttributeError: 'set' object has no attribute 'nodes' T… (#6699)
### Related Issue: 
https://github.com/infiniflow/ragflow/issues/6653 

### Environment:
Using nightly version [ece5903]

Elasticsearch database

Thanks for the review! My fault! I realize my initial testing wasn't
passed.

In graphrag/entity_resolution.py 
 `sub_connect_graph` is a set like` {'HELLO', 'Hi', 'How are you'}`, 
Neither accessing `.nodes` nor `.nodes()` will work, **it still causes
`AttributeError: 'set' object has no attribute 'nodes'`**

In graphrag/general/extractor.py  
The `list.extend() `method performs an in-place operation, directly
modifying the original list and returning ‘None’ rather than the
modified list.
Neither accessing
`sorted(set(node0_attrs[attr].extend(node1_attrs.get(attr, []))))` nor
`sorted(set(node0_attrs[attr].extend(node1_attrs[attr])))` will work,
**it still causes `TypeError: 'NoneType' object is not iterable`**
### Type of change

- [ ] Bug Fix AttributeError: graphrag/entity_resolution.py 
- [ ] Bug Fix TypeError: graphrag/general/extractor.py
2025-04-01 09:38:21 +08:00
..
__init__.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
community_report_prompt.py Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
community_reports_extractor.py Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
entity_embedding.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
extractor.py fix: correct [AttributeError: 'set' object has no attribute 'nodes' T… (#6699) 2025-04-01 09:38:21 +08:00
graph_extractor.py Fix entity_types. Close #6287 and #6608 (#6632) 2025-03-28 15:00:24 +08:00
graph_prompt.py Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
index.py EntityResolution batch. Close #6570 (#6602) 2025-03-27 16:40:36 +08:00
leiden.py Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
mind_map_extractor.py Fix nursery.start_soon. Close #5575 (#5591) 2025-03-04 14:46:54 +08:00
mind_map_prompt.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
smoke.py Refactor graphrag to remove redis lock (#5828) 2025-03-10 15:15:06 +08:00