Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: none parse_config updating. (#6092)

Kevin Hub77e844fc3d7
diff --git a/api/db/services/document_service.py b/api/db/services/document_service.py
index 16482c88c4..10cba99c21 100644
--- a/api/db/services/document_service.py
+++ b/api/db/services/document_service.py
@@ -336,6 +336,8 @@ class DocumentService(CommonService):
@classmethod
@DB.connection_context()
def update_parser_config(cls, id, config):
+ if not config:
+ return
e, d = cls.get_by_id(id)
if not e:
raise LookupError(f"Document({id}) not found.")