remove rerank model must be required when retrieval_model is multiple (#6640)
This commit is contained in:
parent
b347a2f839
commit
600f13436d
1 changed files with 0 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue