ragflow/api/db/services
Qidi Cao f0879563d0
fix: resolve residual image files issue after document deletion (#7964)
### What problem does this PR solve?

When deleting knowledge base documents in RAGFlow, the current process
only removes the block texts in Elasticsearch and the original files in
MinIO, but it leaves behind many binary images and thumbnails generated
during chunking. This pull request improves the deletion process by
querying the block information in Elasticsearch to ensure a more
thorough and complete cleanup.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
2025-05-30 12:56:33 +08:00
..
__init__.py Fix: patch regex vulnerability in filename handling (#7887) 2025-05-27 16:35:37 +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: File selection in Retrieval testing causes other options to disappear (#7759) 2025-05-30 09:38:50 +08:00
conversation_service.py Feat: Surpport dynamically add knowledge basees for retrieval while u… (#7915) 2025-05-28 19:16:16 +08:00
dialog_service.py Refa: change citation mark as [ID:n] (#7923) 2025-05-29 10:03:51 +08:00
document_service.py fix: resolve residual image files issue after document deletion (#7964) 2025-05-30 12:56:33 +08:00
file2document_service.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
file_service.py Feat: repair corrupted PDF files on upload automatically (#7693) 2025-05-19 14:54:06 +08:00
knowledgebase_service.py Fix: filed_map was incorrectly persisted (#7443) 2025-05-06 09:44:38 +08:00
langfuse_service.py Feat: add Langfuse APIs (#6460) 2025-03-24 18:25:43 +08:00
llm_service.py Feat: Support tool calling in Generate component (#7572) 2025-05-16 16:32:19 +08:00
task_service.py Introduced task priority (#6118) 2025-03-14 23:43:46 +08:00
user_canvas_version.py Feat: Improve 'user_canvan_version' delete and 'document' delete performance (#6553) 2025-05-07 10:55:08 +08:00
user_service.py Refa. (#7022) 2025-04-15 10:20:33 +08:00