mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 05:24:02 +00:00
refac
This commit is contained in:
parent
65b7c9898b
commit
7e0a26ef4e
@ -265,7 +265,12 @@ def update_reranking_model(
|
||||
|
||||
return scores
|
||||
|
||||
try:
|
||||
app.state.sentence_transformer_rf = ColBERT(reranking_model)
|
||||
except:
|
||||
log.error("ColBERT error")
|
||||
app.state.sentence_transformer_rf = None
|
||||
app.state.config.ENABLE_RAG_HYBRID_SEARCH = False
|
||||
else:
|
||||
import sentence_transformers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user