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 multi-dataset retrieve score limit (#2050)

Jyong790b885d0a11
diff --git a/api/core/features/dataset_retrieval.py b/api/core/features/dataset_retrieval.py
index 2accbafbdd0..90ca6c42ed8 100644
--- a/api/core/features/dataset_retrieval.py
+++ b/api/core/features/dataset_retrieval.py
@@ -166,8 +166,7 @@ class DatasetRetrievalFeature:
dataset_ids=[dataset.id for dataset in available_datasets],
tenant_id=tenant_id,
top_k=retrieve_config.top_k or 2,
- score_threshold=(retrieve_config.score_threshold or 0.5)
- if retrieve_config.reranking_model.get('score_threshold_enabled', False) else None,
+ score_threshold=retrieve_config.score_threshold,
hit_callbacks=[hit_callback],
return_resource=return_resource,
retriever_from=invoke_from.to_source(),