ragflow/api/db/services
liwenju0 e3ea4b7ec2
Fix: Add Knowledge Base Document Parsing Status Check (#5966)
When creating and updating chats, add a check for the parsing status of
knowledge base documents. Ensure that all documents have been parsed
before allowing chat creation to improve user experience and system
stability.

**Main Changes:**

- Add document parsing status check logic in `chat.py`.
- Implement the `is_parsed_done` method in `knowledgebase_service.py`.
- Prevent chat creation when documents are being parsed or parsing has
failed.

### What problem does this PR solve?

fix this bug:https://github.com/infiniflow/ragflow/issues/5960

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: wenju.li <wenju.li@deepctr.cn>
2025-03-12 16:07:45 +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 Add timestamp to messages (#4624) 2025-01-24 11:07:55 +08:00
common_service.py Fix errors detected by Ruff (#3918) 2024-12-08 14:21:12 +08:00
conversation_service.py Fix issue of ask API. (#5400) 2025-02-26 19:45:22 +08:00
dialog_service.py Feat: apply LLM to optimize citations. (#5935) 2025-03-11 19:56:21 +08:00
document_service.py Fix: too long context during KG issue. (#5723) 2025-03-06 19:21:07 +08:00
file2document_service.py Tagging (#4426) 2025-01-09 17:07:21 +08:00
file_service.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
knowledgebase_service.py Fix: Add Knowledge Base Document Parsing Status Check (#5966) 2025-03-12 16:07:45 +08:00
llm_service.py refactor: no need to inherit in python3 clean the code (#5659) 2025-03-05 18:03:53 +08:00
task_service.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
user_service.py Refactor. (#4612) 2025-01-23 18:56:02 +08:00