mirror of
https://github.com/langgenius/dify.git
synced 2026-04-01 03:19:42 +08:00
remove rerank model must be required when retrieval_model is multiple (#6640)
This commit is contained in:
parent
b347a2f839
commit
600f13436d
@ -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")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user