ragflow/api/db/services
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
..
__init__.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
api_service.py Feat(api): Add dsl parameters to control whether dsl fields are included (#5769) 2025-03-07 16:58:00 +08:00
canvas_service.py Feat: add OpenAI compatible API for agent (#6329) 2025-04-03 16:51:37 +08:00
common_service.py Fix pymysql interface error (#7295) 2025-04-25 13:29:47 +08:00
conversation_service.py Fix issue of ask API. (#5400) 2025-02-26 19:45:22 +08:00
dialog_service.py <think> tag is missing. (#7256) 2025-04-24 11:44:10 +08:00
document_service.py Fix: whole knowledge graph lost after removing any document in the knowledge base (#7151) 2025-04-30 09:43:17 +08:00
file2document_service.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
file_service.py Improve API Documentation, Standardize Error Handling, and Enhance Comments (#5990) 2025-03-13 19:06:50 +08:00
knowledgebase_service.py [BREAKING CHANGE] GET to POST: enhance document list capability (#7349) 2025-04-27 16:48:27 +08:00
langfuse_service.py Feat: add Langfuse APIs (#6460) 2025-03-24 18:25:43 +08:00
llm_service.py Fix: pymysql.err.InterfaceError: (0, '') during long time streaming chat responses (#6548) (#7057) 2025-04-16 19:15:35 +08:00
task_service.py Introduced task priority (#6118) 2025-03-14 23:43:46 +08:00
user_canvas_version.py Feat: support agent version history. (#6130) 2025-03-19 15:22:53 +08:00
user_service.py Refa. (#7022) 2025-04-15 10:20:33 +08:00