feat: n to 1 retrieval legacy (#6554)

This commit is contained in:
zxhlyh 2024-07-24 12:50:48 +08:00 • committed by GitHub
commit 6fe9aa69cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 1329 additions and 249 deletions

View file

@ -113,6 +113,10 @@ const Form = () => {
retrievalConfig,
indexMethod,
})
if (postRetrievalConfig.weights) {
postRetrievalConfig.weights.vector_setting.embedding_provider_name = currentDataset?.embedding_model_provider || ''
postRetrievalConfig.weights.vector_setting.embedding_model_name = currentDataset?.embedding_model || ''
}
try {
setLoading(true)
const requestParams = {