### What problem does this PR solve? When you removed any document in a knowledge base using knowledge graph, the graph's `removed_kwd` is set to "Y". However, in the function `graphrag.utils.get_gaph`, `rebuild_graph` method is passed and directly return `None` while `removed_kwd=Y`, making residual part of the graph abandoned (but old entity data still exist in db). Besides, infinity instance actually pass deleting graph components' `source_id` when removing document. It may cause wrong graph after rebuild. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| community_report_prompt.py | ||
| community_reports_extractor.py | ||
| entity_embedding.py | ||
| extractor.py | ||
| graph_extractor.py | ||
| graph_prompt.py | ||
| index.py | ||
| leiden.py | ||
| mind_map_extractor.py | ||
| mind_map_prompt.py | ||
| smoke.py | ||