Selaa lähdekoodia

fix: update retrieval method cache (#21409)

tags/1.5.1
Wu Tianwei 4 kuukautta sitten
vanhempi
commit
ad9eebd02d
No account linked to committer's email address

+ 2
- 2
web/app/components/datasets/create/step-three/index.tsx Näytä tiedosto

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}
retrievalMethod={retrievalMethod || creationCache?.dataset?.retrieval_model?.search_method}
indexingType={creationCache?.dataset?.indexing_technique || indexingType}
retrievalMethod={creationCache?.dataset?.retrieval_model_dict?.search_method || retrievalMethod}
/> />
</div> </div>
</div> </div>

+ 1
- 0
web/app/components/datasets/create/step-two/index.tsx Näytä tiedosto

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…
Peruuta
Tallenna