fix: update retrieval method cache (#21409)

pull/21553/head
Wu Tianwei 11 months ago committed by GitHub
parent cefb8e4218
commit ad9eebd02d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -52,8 +52,8 @@ const StepThree = ({ datasetId, datasetName, indexingType, creationCache, retrie
datasetId={datasetId || creationCache?.dataset?.id || ''} datasetId={datasetId || creationCache?.dataset?.id || ''}
batchId={creationCache?.batch || ''} batchId={creationCache?.batch || ''}
documents={creationCache?.documents as FullDocumentDetail[]} documents={creationCache?.documents as FullDocumentDetail[]}
indexingType={indexingType || creationCache?.dataset?.indexing_technique} indexingType={creationCache?.dataset?.indexing_technique || indexingType}
retrievalMethod={retrievalMethod || creationCache?.dataset?.retrieval_model?.search_method} retrievalMethod={creationCache?.dataset?.retrieval_model_dict?.search_method || retrievalMethod}
/> />
</div> </div>
</div> </div>

@ -575,6 +575,7 @@ const StepTwo = ({
onSuccess(data) { onSuccess(data) {
updateIndexingTypeCache && updateIndexingTypeCache(indexType as string) updateIndexingTypeCache && updateIndexingTypeCache(indexType as string)
updateResultCache && updateResultCache(data) updateResultCache && updateResultCache(data)
updateRetrievalMethodCache && updateRetrievalMethodCache(retrievalConfig.search_method as string)
}, },
}) })
} }

Loading…
Cancel
Save