Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: correct indentation in dataset retrieval model assignment (#20040)

GonzaHM38b1e4624192
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index bac1bf389f1..69573154096 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -960,11 +960,11 @@ class DocumentService:
"score_threshold_enabled": False,
}
- dataset.retrieval_model = (
- knowledge_config.retrieval_model.model_dump()
- if knowledge_config.retrieval_model
- else default_retrieval_model
- ) # type: ignore
+ dataset.retrieval_model = (
+ knowledge_config.retrieval_model.model_dump()
+ if knowledge_config.retrieval_model
+ else default_retrieval_model
+ ) # type: ignore
documents = []
if knowledge_config.original_document_id: