mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-01 00:18:18 +02:00
Reranker Warning Log (#1299)
This commit is contained in:
parent
58dc620c28
commit
33da86c802
@ -267,8 +267,9 @@ class CrossEncoderEnsembleModel:
|
||||
ENABLE_RERANKING_REAL_TIME_FLOW is False
|
||||
and ENABLE_RERANKING_ASYNC_FLOW is False
|
||||
):
|
||||
raise RuntimeError(
|
||||
"Should not be loading rerankers, they have been globally disabled"
|
||||
logger.warning(
|
||||
"Running rerankers but they are globally disabled."
|
||||
"Was this specified explicitly via an API?"
|
||||
)
|
||||
|
||||
if self.rerank_server_endpoint:
|
||||
|
Loading…
x
Reference in New Issue
Block a user