Skip to content

Commit

Permalink
Merge branch 'fix/workflow-knowledge-retrieval-validate' into deploy/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zxhlyh committed Nov 11, 2024
2 parents 6535421 + bdcddbc commit 76dfc04
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,11 @@ export const getMultipleRetrievalConfig = (
setDefaultWeights()
}
}

if (reranking_mode === RerankingModeEnum.RerankingModel && !rerankModelIsValid) {
result.reranking_mode = RerankingModeEnum.WeightedScore
setDefaultWeights()
}
}

return result
Expand Down

0 comments on commit 76dfc04

Please sign in to comment.