Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -261,7 +261,8 @@ def predict(text):
|
|
261 |
# final_results.append(semantic_pick)
|
262 |
|
263 |
# return final_results[:top_k]
|
264 |
-
|
|
|
265 |
"""Get diverse top results using multiple ranking strategies with BM25 threshold"""
|
266 |
|
267 |
# First, check if any results have BM25 score > 0.1
|
|
|
261 |
# final_results.append(semantic_pick)
|
262 |
|
263 |
# return final_results[:top_k]
|
264 |
+
|
265 |
+
def get_diverse_top_results(combined_results, top_k=15):
|
266 |
"""Get diverse top results using multiple ranking strategies with BM25 threshold"""
|
267 |
|
268 |
# First, check if any results have BM25 score > 0.1
|