From 7a9c0946a47d54379ac67e80be0f546fbc14ec44 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 17 Sep 2024 23:13:51 +0200 Subject: [PATCH] refac --- backend/open_webui/apps/rag/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/apps/rag/main.py b/backend/open_webui/apps/rag/main.py index 9ce70f324..e10c03bc3 100644 --- a/backend/open_webui/apps/rag/main.py +++ b/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: