ragflow/graphrag
alkscr ab27609a64
Fix: whole knowledge graph lost after removing any document in the knowledge base (#7151)
### 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)
2025-04-30 09:43:17 +08:00
..
general Fix: whole knowledge graph lost after removing any document in the knowledge base (#7151) 2025-04-30 09:43:17 +08:00
light Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
__init__.py Cache the result from llm for graphrag and raptor (#4051) 2024-12-17 09:48:03 +08:00
entity_resolution.py fix(nursery): Fix Closure Trap Issues in Trio Concurrent Tasks (#7106) 2025-04-18 18:00:20 +08:00
entity_resolution_prompt.py Add graphrag (#1793) 2024-08-02 18:51:14 +08:00
query_analyze_prompt.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
search.py Fix: KG search issue. (#7186) 2025-04-22 12:10:30 +08:00
utils.py Fix: whole knowledge graph lost after removing any document in the knowledge base (#7151) 2025-04-30 09:43:17 +08:00