Explorar el Código

Merge pull request #8379 from qiaozhi199/main

Fix the issue of inaccurate answers after enabling RAG query generation
Timothy Jaeryang Baek hace 4 meses
padre
commit
0e7c3d4eb8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      backend/open_webui/retrieval/utils.py

+ 1 - 1
backend/open_webui/retrieval/utils.py

@@ -199,7 +199,7 @@ def query_collection(
             else:
                 pass
 
-    return merge_and_sort_query_results(results, k=k)
+    return merge_and_sort_query_results(results, k=k, reverse=True)
 
 
 def query_collection_with_hybrid_search(