ragflow/api/apps/sdk
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
..
agent.py Added static check at PR CI (#3921) 2024-12-08 21:23:51 +08:00
chat.py Fix: Add Knowledge Base Document Parsing Status Check (#5966) 2025-03-12 16:07:45 +08:00
dataset.py Fix: empty value updating. (#5949) 2025-03-12 11:25:17 +08:00
dify_retrieval.py Code refactor (#5371) 2025-02-26 15:40:52 +08:00
doc.py Fix: meta fields updata issue, (#5764) 2025-03-07 16:21:27 +08:00
session.py Fix: ollama model add error. (#5947) 2025-03-12 10:56:05 +08:00