|
@@ -852,7 +852,7 @@ async def update_rag_config(
|
|
|
import torch
|
|
|
if torch.cuda.is_available():
|
|
|
torch.cuda.empty_cache()
|
|
|
- if request.app.state.config.ENABLE_RAG_HYBRID_SEARCH and not request.app.state.BYPASS_EMBEDDING_AND_RETRIEVAL:
|
|
|
+ if request.app.state.config.ENABLE_RAG_HYBRID_SEARCH and not request.app.state.config.BYPASS_EMBEDDING_AND_RETRIEVAL:
|
|
|
request.app.state.rf = get_rf(
|
|
|
request.app.state.config.RAG_RERANKING_ENGINE,
|
|
|
request.app.state.config.RAG_RERANKING_MODEL,
|