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:About the error problem of creating an empty knowledge base interface in service_api (#25398)

ttz12345d2e50a508c73
diff --git a/api/services/dataset_service.py b/api/services/dataset_service.py
index 2b151f9a8e8..65dc673100b 100644
--- a/api/services/dataset_service.py
+++ b/api/services/dataset_service.py
@@ -217,7 +217,7 @@ class DatasetService:
and retrieval_model.reranking_model.reranking_model_name
):
# check if reranking model setting is valid
- DatasetService.check_embedding_model_setting(
+ DatasetService.check_reranking_model_setting(
tenant_id,
retrieval_model.reranking_model.reranking_provider_name,
retrieval_model.reranking_model.reranking_model_name,