Timothy J. Baek 7 tháng trước cách đây
mục cha
commit
7a9c0946a4
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      backend/open_webui/apps/rag/main.py

+ 2 - 2
backend/open_webui/apps/rag/main.py

@@ -267,8 +267,8 @@ def update_reranking_model(
 
             try:
                 app.state.sentence_transformer_rf = ColBERT(reranking_model)
-            except:
-                log.error("ColBERT error")
+            except Exception as e:
+                log.error(f"ColBERT: {e}")
                 app.state.sentence_transformer_rf = None
                 app.state.config.ENABLE_RAG_HYBRID_SEARCH = False
         else: