Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: datasets weight settings embedding model does not change (#27694)

墨绿色7f48c57edff3
diff --git a/web/app/components/datasets/settings/form/index.tsx b/web/app/components/datasets/settings/form/index.tsx
index c6a5da9699c..cd7a60b817a 100644
--- a/web/app/components/datasets/settings/form/index.tsx
+++ b/web/app/components/datasets/settings/form/index.tsx
@@ -146,8 +146,8 @@ const Form = () => {
return
}
if (retrievalConfig.weights) {
- retrievalConfig.weights.vector_setting.embedding_provider_name = currentDataset?.embedding_model_provider || ''
- retrievalConfig.weights.vector_setting.embedding_model_name = currentDataset?.embedding_model || ''
+ retrievalConfig.weights.vector_setting.embedding_provider_name = embeddingModel.provider || ''
+ retrievalConfig.weights.vector_setting.embedding_model_name = embeddingModel.model || ''
}
try {
setLoading(true)