enh: colbert rerank support

This commit is contained in:
Timothy J. Baek
2024-09-16 11:46:39 +02:00
parent db0c576f48
commit b38986a0aa
2 changed files with 75 additions and 13 deletions

View File

@@ -232,8 +232,7 @@ def query_collection_with_hybrid_search(
if error:
raise Exception(
"Hybrid search failed for all collections. Using "
"Non hybrid search as fallback."
"Hybrid search failed for all collections. Using Non hybrid search as fallback."
)
return merge_and_sort_query_results(results, k=k, reverse=True)