Selaa lähdekoodia

fix multi-dataset retrieve score limit (#2050)

Co-authored-by: jyong <jyong@dify.ai>
tags/0.4.8
Jyong 1 vuosi sitten
vanhempi
commit
790b885d0a
No account linked to committer's email address
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1
    2
      api/core/features/dataset_retrieval.py

+ 1
- 2
api/core/features/dataset_retrieval.py Näytä tiedosto

@@ -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(),

Loading…
Peruuta
Tallenna