make bm25_weight a regular parameter of query_doc.. / get_sources_from_files functions
This commit is contained in:
@@ -1782,6 +1782,11 @@ def query_doc_handler(
|
||||
if form_data.r
|
||||
else request.app.state.config.RELEVANCE_THRESHOLD
|
||||
),
|
||||
bm25_weight=(
|
||||
form_data.bm25_weight
|
||||
if form_data.bm25_weight
|
||||
else request.app.state.config.BM25_WEIGHT
|
||||
),
|
||||
user=user,
|
||||
)
|
||||
else:
|
||||
@@ -1833,6 +1838,11 @@ def query_collection_handler(
|
||||
if form_data.r
|
||||
else request.app.state.config.RELEVANCE_THRESHOLD
|
||||
),
|
||||
bm25_weight=(
|
||||
form_data.bm25_weight
|
||||
if form_data.bm25_weight
|
||||
else request.app.state.config.BM25_WEIGHT
|
||||
),
|
||||
)
|
||||
else:
|
||||
return query_collection(
|
||||
|
||||
Reference in New Issue
Block a user