Merge branch 'fix/rerank-validation-issue' into deploy/dev

This commit is contained in:
Yi 2024-10-31 18:14:35 +08:00
commit 4c73bef12d

View File

@ -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')
}