mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 13:39:04 +08:00
fix(RetrievalConfig): Fix score threshold assignment for zero value (#7865)
This commit is contained in:
parent
ef82a29e23
commit
024d688b77
@ -70,7 +70,7 @@ const RetrievalConfig: FC<Props> = ({
|
|||||||
}
|
}
|
||||||
onMultipleRetrievalConfigChange({
|
onMultipleRetrievalConfigChange({
|
||||||
top_k: configs.top_k,
|
top_k: configs.top_k,
|
||||||
score_threshold: configs.score_threshold_enabled ? (configs.score_threshold || DATASET_DEFAULT.score_threshold) : null,
|
score_threshold: configs.score_threshold_enabled ? (configs.score_threshold ?? DATASET_DEFAULT.score_threshold) : null,
|
||||||
reranking_model: payload.retrieval_mode === RETRIEVE_TYPE.oneWay
|
reranking_model: payload.retrieval_mode === RETRIEVE_TYPE.oneWay
|
||||||
? undefined
|
? undefined
|
||||||
: (!configs.reranking_model?.reranking_provider_name
|
: (!configs.reranking_model?.reranking_provider_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user