Timothy J. Baek 1 год назад
Родитель
Сommit
8f1563a7a5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      backend/apps/rag/utils.py

+ 1 - 1
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)