diff --git a/backend/apps/rag/utils.py b/backend/apps/rag/utils.py index 668f38e46..10ab9bbda 100644 --- a/backend/apps/rag/utils.py +++ b/backend/apps/rag/utils.py @@ -154,7 +154,7 @@ def query_embeddings_collection( except: pass - reverse = hybrid and reranking_function is not None + reverse = hybrid_search and reranking_function is not None return merge_and_sort_query_results(results, k=k, reverse=reverse)