### 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 | ||
| azure_sas_conn.py | ||
| azure_spn_conn.py | ||
| doc_store_conn.py | ||
| es_conn.py | ||
| infinity_conn.py | ||
| minio_conn.py | ||
| opensearch_coon.py | ||
| oss_conn.py | ||
| redis_conn.py | ||
| s3_conn.py | ||
| storage_factory.py | ||
| tavily_conn.py | ||