mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-28 08:51:00 +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
|
ENABLE_RERANKING_REAL_TIME_FLOW is False
|
||||||
and ENABLE_RERANKING_ASYNC_FLOW is False
|
and ENABLE_RERANKING_ASYNC_FLOW is False
|
||||||
):
|
):
|
||||||
raise RuntimeError(
|
logger.warning(
|
||||||
"Should not be loading rerankers, they have been globally disabled"
|
"Running rerankers but they are globally disabled."
|
||||||
|
"Was this specified explicitly via an API?"
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.rerank_server_endpoint:
|
if self.rerank_server_endpoint:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user