fix: retrieval setting validate

This commit is contained in:
StyleZhang 2024-11-11 18:29:51 +08:00
parent 9f7c330fd1
commit bdcddbc0af

View File

@ -198,6 +198,11 @@ export const getMultipleRetrievalConfig = (
setDefaultWeights()
}
}
if (reranking_mode === RerankingModeEnum.RerankingModel && !rerankModelIsValid) {
result.reranking_mode = RerankingModeEnum.WeightedScore
setDefaultWeights()
}
}
return result