diff --git a/api/core/features/dataset_retrieval.py b/api/core/features/dataset_retrieval.py index 2accbafbd..90ca6c42e 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(),