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: external dataset missing score_threshold_enabled (#10943)

cooper.wu01014a6a8481
diff --git a/api/fields/dataset_fields.py b/api/fields/dataset_fields.py
index b32423f10c9..533e3a0837b 100644
--- a/api/fields/dataset_fields.py
+++ b/api/fields/dataset_fields.py
@@ -41,6 +41,7 @@ dataset_retrieval_model_fields = {
external_retrieval_model_fields = {
"top_k": fields.Integer,
"score_threshold": fields.Float,
+ "score_threshold_enabled": fields.Boolean,
}
tag_fields = {"id": fields.String, "name": fields.String, "type": fields.String}