mirror of
https://git.mirrors.martin98.com/https://github.com/open-webui/open-webui
synced 2025-08-19 19:59:13 +08:00
Merge pull request #12450 from mahenning/fix-missing-parameter-rag
Fix: Add missing parameter for query_doc_with_hybrid_search
This commit is contained in:
commit
a32bb850fa
@ -1534,8 +1534,13 @@ def query_doc_handler(
|
|||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
if request.app.state.config.ENABLE_RAG_HYBRID_SEARCH:
|
if request.app.state.config.ENABLE_RAG_HYBRID_SEARCH:
|
||||||
|
collection_results = {}
|
||||||
|
collection_results[form_data.collection_name] = VECTOR_DB_CLIENT.get(
|
||||||
|
collection_name=form_data.collection_name
|
||||||
|
)
|
||||||
return query_doc_with_hybrid_search(
|
return query_doc_with_hybrid_search(
|
||||||
collection_name=form_data.collection_name,
|
collection_name=form_data.collection_name,
|
||||||
|
collection_result=collection_results[form_data.collection_name],
|
||||||
query=form_data.query,
|
query=form_data.query,
|
||||||
embedding_function=lambda query, prefix: request.app.state.EMBEDDING_FUNCTION(
|
embedding_function=lambda query, prefix: request.app.state.EMBEDDING_FUNCTION(
|
||||||
query, prefix=prefix, user=user
|
query, prefix=prefix, user=user
|
||||||
|
Loading…
x
Reference in New Issue
Block a user