davidtran999 commited on
Commit
b4a10df
·
verified ·
1 Parent(s): df243d2

Upload backend/hue_portal/core/reranker.py with huggingface_hub

Browse files
backend/hue_portal/core/reranker.py CHANGED
@@ -102,9 +102,6 @@ def rerank_documents(
102
  Returns:
103
  Top-k reranked documents.
104
  """
105
- # Cap top_k to a small value to control cost
106
- top_k = max(1, min(top_k or 3, 5))
107
-
108
  if not documents or not query:
109
  return documents[:top_k]
110
 
 
102
  Returns:
103
  Top-k reranked documents.
104
  """
 
 
 
105
  if not documents or not query:
106
  return documents[:top_k]
107