From 5f8c8c59a3566fa3dc602639135f621545bce932 Mon Sep 17 00:00:00 2001 From: Yi Date: Thu, 31 Oct 2024 18:13:41 +0800 Subject: [PATCH] chore: update retrieval config save validation --- .../app/configuration/dataset-config/params-config/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/app/configuration/dataset-config/params-config/index.tsx b/web/app/components/app/configuration/dataset-config/params-config/index.tsx index 390770d6b3..94920fbd39 100644 --- a/web/app/components/app/configuration/dataset-config/params-config/index.tsx +++ b/web/app/components/app/configuration/dataset-config/params-config/index.tsx @@ -49,8 +49,8 @@ const ParamsConfig = ({ let errMsg = '' if (tempDataSetConfigs.retrieval_model === RETRIEVE_TYPE.multiWay) { if (tempDataSetConfigs.reranking_enable - && !tempDataSetConfigs.reranking_model?.reranking_model_name && tempDataSetConfigs.reranking_mode === RerankingModeEnum.RerankingModel + && !isRerankDefaultModelValid ) errMsg = t('appDebug.datasetConfig.rerankModelRequired') }