fix: default rerank model check (#6917)

This commit is contained in:
zxhlyh 2024-08-02 18:27:06 +08:00 committed by GitHub
parent f97a51ce24
commit 6feea0d75b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,6 +55,7 @@ export const ensureRerankModelSelected = ({
indexMethod === 'high_quality'
&& (retrievalConfig.reranking_enable || retrievalConfig.search_method === RETRIEVE_METHOD.hybrid)
&& !rerankModel
&& rerankDefaultModel
) {
return {
...retrievalConfig,