make bm25_weight a regular parameter of query_doc.. / get_sources_from_files functions

This commit is contained in:
Jan Kessler
2025-05-20 11:21:14 +02:00
parent b5ddaf6417
commit 308d8ac04a
3 changed files with 19 additions and 4 deletions

View File

@@ -603,6 +603,7 @@ async def chat_completion_files_handler(
reranking_function=request.app.state.rf,
k_reranker=request.app.state.config.TOP_K_RERANKER,
r=request.app.state.config.RELEVANCE_THRESHOLD,
bm25_weight=request.app.state.config.BM25_WEIGHT,
hybrid_search=request.app.state.config.ENABLE_RAG_HYBRID_SEARCH,
full_context=request.app.state.config.RAG_FULL_CONTEXT,
),