bhulston commited on
Commit
fe4ae60
1 Parent(s): 56eebbb

Update reranker.py

Browse files
Files changed (1) hide show
  1. reranker.py +1 -0
reranker.py CHANGED
@@ -10,6 +10,7 @@ def reranker(query, matches):
10
  pairs.append([query, match["metadata"]["text"]])
11
 
12
  model = CrossEncoder('cross-encoder/ms-marco-TinyBERT-L-2-v2', max_length = 512)
 
13
 
14
  scores = model.predict(pairs)
15
  top_indices = np.argsort(scores)[::-5]
 
10
  pairs.append([query, match["metadata"]["text"]])
11
 
12
  model = CrossEncoder('cross-encoder/ms-marco-TinyBERT-L-2-v2', max_length = 512)
13
+ print("Pairs variable:", pairs)
14
 
15
  scores = model.predict(pairs)
16
  top_indices = np.argsort(scores)[::-5]