mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
refac
This commit is contained in:
parent
7e0a26ef4e
commit
7a9c0946a4
1 changed files with 2 additions and 2 deletions
|
|
@ -267,8 +267,8 @@ def update_reranking_model(
|
||||||
|
|
||||||
try:
|
try:
|
||||||
app.state.sentence_transformer_rf = ColBERT(reranking_model)
|
app.state.sentence_transformer_rf = ColBERT(reranking_model)
|
||||||
except:
|
except Exception as e:
|
||||||
log.error("ColBERT error")
|
log.error(f"ColBERT: {e}")
|
||||||
app.state.sentence_transformer_rf = None
|
app.state.sentence_transformer_rf = None
|
||||||
app.state.config.ENABLE_RAG_HYBRID_SEARCH = False
|
app.state.config.ENABLE_RAG_HYBRID_SEARCH = False
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue