ragflow/rag
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
..
app Fix: Add title_tks for Pictures (#7365) 2025-04-28 13:35:34 +08:00
llm feat: replace models of novita (#7360) 2025-04-28 13:35:09 +08:00
nlp Refa: similarity calculations. (#7381) 2025-04-28 19:17:11 +08:00
res Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
svr Fix: improve recover_pending_tasks timeout (#7408) 2025-04-29 16:50:39 +08:00
utils Fix: whole knowledge graph lost after removing any document in the knowledge base (#7151) 2025-04-30 09:43:17 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompts.py Fix: LLM generated tag issue. (#7301) 2025-04-25 14:38:34 +08:00
raptor.py <think> tag is missing. (#7256) 2025-04-24 11:44:10 +08:00
settings.py Feat: Adds OpenSearch2.19.1 as the vector_database support (#7140) 2025-04-24 16:03:31 +08:00