From ad9eebd02d132d13c6cd6d6ca6e10c3911f10d55 Mon Sep 17 00:00:00 2001 From: Wu Tianwei <30284043+WTW0313@users.noreply.github.com> Date: Thu, 26 Jun 2025 10:58:21 +0800 Subject: [PATCH] fix: update retrieval method cache (#21409) --- web/app/components/datasets/create/step-three/index.tsx | 4 ++-- web/app/components/datasets/create/step-two/index.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/components/datasets/create/step-three/index.tsx b/web/app/components/datasets/create/step-three/index.tsx index cdaa003a2..ea5977a02 100644 --- a/web/app/components/datasets/create/step-three/index.tsx +++ b/web/app/components/datasets/create/step-three/index.tsx @@ -52,8 +52,8 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retrie datasetId={datasetId || creationCache?.dataset?.id || ''} batchId={creationCache?.batch || ''} documents={creationCache?.documents as FullDocumentDetail[]} - indexingType={indexingType || creationCache?.dataset?.indexing_technique} - retrievalMethod={retrievalMethod || creationCache?.dataset?.retrieval_model?.search_method} + indexingType={creationCache?.dataset?.indexing_technique || indexingType} + retrievalMethod={creationCache?.dataset?.retrieval_model_dict?.search_method || retrievalMethod} /> diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index acc891407..9a76bc683 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -575,6 +575,7 @@ const StepTwo = ({ onSuccess(data) { updateIndexingTypeCache && updateIndexingTypeCache(indexType as string) updateResultCache && updateResultCache(data) + updateRetrievalMethodCache && updateRetrievalMethodCache(retrievalConfig.search_method as string) }, }) }