diff --git a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx index a2e467a64305ca..b0eae5f1311294 100644 --- a/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx +++ b/web/app/components/app/configuration/dataset-config/params-config/config-content.tsx @@ -1,6 +1,6 @@ 'use client' -import { memo, useMemo } from 'react' +import { memo, useEffect, useMemo } from 'react' import type { FC } from 'react' import { useTranslation } from 'react-i18next' import WeightedScore from './weighted-score' @@ -47,6 +47,15 @@ const ConfigContent: FC = ({ const selectedDatasetsMode = useSelectedDatasetsMode(selectedDatasets) const type = datasetConfigs.retrieval_model + useEffect(() => { + if (type === RETRIEVE_TYPE.oneWay) { + onChange({ + ...datasetConfigs, + retrieval_model: RETRIEVE_TYPE.multiWay, + }) + } + }, [type]) + const { modelList: rerankModelList, defaultModel: rerankDefaultModel, @@ -151,6 +160,12 @@ const ConfigContent: FC = ({ {type === RETRIEVE_TYPE.multiWay && ( <> +
+
+ {t('dataset.rerankSettings')} +
+
+
{ selectedDatasetsMode.inconsistentEmbeddingModel && (