e6665288d5
fix: correct [graphrag/general/exactor.py change.removed_nodes.extend(nodes[1:])] AttributeError: 'set' object has no attribute 'extend'
...
[AttributeError: 'set' object has no attribute 'nodes' TypeError: 'NoneType' object is not iterable] from commit ece5903
2025-04-01 10:07:02 +08:00
ece59034f7
fix: Resolve KnowledgeGraph entity resolution errors ( #6653 ) ( #6691 )
...
### Related Issue: #6653
### Environment:
Using nightly version
Elasticsearch database
### Bug Description:
When clicking the "Entity Resolution" button in KnowledgeGraph,
encountered the following errors:
graphrag/entity_resolution.py
```
list(sub_connect_graph.nodes) AttributeError
```
graphrag/general/extractor.py
```
node0_attrs[attr] = sorted(set(node0_attrs[attr].extend(node1_attrs[attr])))
TypeError: 'NoneType' object is not iterable
```
```
for attr in ["keywords", "source_id"]:
KeyError I think attribute "keywords" is in edges not nodes
```
graphrag/utils.py
```
settings.docStoreConn.delete() # Sync function called as async
```
### Changes Made:
Fixed AttributeError in entity_resolution.py by properly handling graph
nodes
Fixed TypeError and KeyError in extractor.py by separate operations
Corrected async/sync mismatch in document deletion call
2025-03-31 22:31:35 +08:00
d32a35d8fd
Fix entity_types. Close #6287 and #6608 ( #6632 )
...
### What problem does this PR solve?
Fix entity_types. Close #6287 and #6608
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-28 15:00:24 +08:00
36b62e0fab
EntityResolution batch. Close #6570 ( #6602 )
...
### What problem does this PR solve?
EntityResolution batch
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-27 16:40:36 +08:00
c4998d0e09
Rename graphrag task lock ( #6576 )
...
### What problem does this PR solve?
Rename graphrag task lock
### Type of change
- [x] Refactoring
2025-03-26 23:48:47 +08:00
6bf26e2a81
Optimize graphrag again ( #6513 )
...
### What problem does this PR solve?
Removed set_entity and set_relation to avoid accessing doc engine during
graph computation.
Introduced GraphChange to avoid writing unchanged chunks.
### Type of change
- [x] Performance Improvement
2025-03-26 15:34:42 +08:00
390086c6ab
Fix: split process bug in graphrag extract ( #6423 )
...
### What problem does this PR solve?
1. miss completion delimiter.
2. miss bracket process.
3. doc_ids return by update_graph is a set, and insert operation in
extract_community need a list.
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-24 21:41:20 +08:00
8b7e53e643
Fix: miss calculate of token number. ( #6401 )
...
### What problem does this PR solve?
#6308
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-21 17:30:38 +08:00
939e668096
Optimized graphrag again ( #5927 )
...
### What problem does this PR solve?
Optimized graphrag again
### Type of change
- [x] Performance Improvement
2025-03-11 18:36:10 +08:00
6ec6ca6971
Refactor graphrag to remove redis lock ( #5828 )
...
### What problem does this PR solve?
Refactor graphrag to remove redis lock
### Type of change
- [x] Refactoring
2025-03-10 15:15:06 +08:00
9fc7174612
Fix: too long context during KG issue. ( #5723 )
...
### What problem does this PR solve?
#5088
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-06 19:21:07 +08:00
78b2e0be89
fix: issue #5600 ( #5645 )
...
fix: issue https://github.com/infiniflow/ragflow/issues/5600
### What problem does this PR solve?
close issue https://github.com/infiniflow/ragflow/issues/5600
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-05 16:50:37 +08:00
02c955babb
Fix: parameter error. ( #5641 )
...
### What problem does this PR solve?
#5600
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-05 14:37:51 +08:00
4d6484b03e
Fix nursery.start_soon. Close #5575 ( #5591 )
...
### What problem does this PR solve?
Fix nursery.start_soon. Close #5575
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-03-04 14:46:54 +08:00
c813c1ff4c
Made task_executor async to speedup parsing ( #5530 )
...
### What problem does this PR solve?
Made task_executor async to speedup parsing
### Type of change
- [x] Performance Improvement
2025-03-03 18:59:49 +08:00
1a41b92f77
More robust community report. ( #5328 )
...
### What problem does this PR solve?
#5289
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-25 12:58:10 +08:00
ecf5f6976f
Make node merging parallel. ( #5324 )
...
### What problem does this PR solve?
#5314
### Type of change
- [x] Performance Improvement
2025-02-25 12:02:44 +08:00
ef95f08c48
Remove redandent code. ( #5121 )
...
### What problem does this PR solve?
#5107
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-19 15:46:52 +08:00
84b4b38cbb
Remove <think> for exeSql component. ( #5069 )
...
### What problem does this PR solve?
#5061
#5067
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-18 13:39:37 +08:00
f46448d04c
Remove <think> for KG extraction. ( #5027 )
...
### What problem does this PR solve?
#4946
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-17 14:06:06 +08:00
448fa1c4d4
Robust for abnormal response from LLMs. ( #4747 )
...
### What problem does this PR solve?
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-06 17:34:53 +08:00
2a07eb69a7
Fix too long context issue. ( #4735 )
...
### What problem does this PR solve?
#4728
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-02-06 11:37:23 +08:00
42f7261509
Fix param error. ( #4645 )
...
### What problem does this PR solve?
#4633
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
2025-01-26 10:40:02 +08:00
dd0ebbea35
Light GraphRAG ( #4585 )
...
### What problem does this PR solve?
#4543
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
2025-01-22 19:43:14 +08:00