Beav3r commited on
Commit
c93deb1
·
verified ·
1 Parent(s): 4fc3fc6

Update retriever.py

Browse files
Files changed (1) hide show
  1. retriever.py +3 -3
retriever.py CHANGED
@@ -112,9 +112,9 @@ class Retriever:
112
  # Sort the documents by their BM25 scores in descending order
113
  sorted_doc_indices = np.argsort(scores)
114
 
115
- print("Score:", scores[sorted_doc_indices[-i]] )
116
- print(self.docs[sorted_doc_indices[-i]])
117
- print("Doc number:", sorted_doc_indices[-i])
118
 
119
  result_docs = [self.docs[i] for i in sorted_doc_indices[-n:] if scores[i] > 0]
120
 
 
112
  # Sort the documents by their BM25 scores in descending order
113
  sorted_doc_indices = np.argsort(scores)
114
 
115
+ print("Score:", scores[sorted_doc_indices[-1]] )
116
+ print(self.docs[sorted_doc_indices[-1]])
117
+ print("Doc number:", sorted_doc_indices[-1])
118
 
119
  result_docs = [self.docs[i] for i in sorted_doc_indices[-n:] if scores[i] > 0]
120