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.

remove rerank model must be required when retrieval_model is multiple (#6640)

Jyong600f13436df3
diff --git a/api/core/app/app_config/easy_ui_based_app/dataset/manager.py b/api/core/app/app_config/easy_ui_based_app/dataset/manager.py
index 7d2381d9589..13da5514d18 100644
--- a/api/core/app/app_config/easy_ui_based_app/dataset/manager.py
+++ b/api/core/app/app_config/easy_ui_based_app/dataset/manager.py
@@ -120,12 +120,6 @@ class DatasetConfigManager:
if not isinstance(config["dataset_configs"], dict):
raise ValueError("dataset_configs must be of object type")
- if config["dataset_configs"]['retrieval_model'] == 'multiple':
- if not config["dataset_configs"]['reranking_model']:
- raise ValueError("reranking_model has not been set")
- if not isinstance(config["dataset_configs"]['reranking_model'], dict):
- raise ValueError("reranking_model must be of object type")
-
if not isinstance(config["dataset_configs"], dict):
raise ValueError("dataset_configs must be of object type")