Bofandra commited on
Commit
923f344
1 Parent(s): b19f7da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -44,6 +44,7 @@ def respond(
44
  scores = (query_embeddings @ encoded_questions.T) * 100
45
  selected_references['similarity'] = scores.tolist()[0]
46
  sorted_references = selected_references.sort_values(by='similarity', ascending=False)
 
47
  sorted_references = sorted_references.iloc[:3]
48
  sorted_references = selected_references.sort_values(by='similarity', ascending=True)
49
  print(sorted_references.shape[0])
 
44
  scores = (query_embeddings @ encoded_questions.T) * 100
45
  selected_references['similarity'] = scores.tolist()[0]
46
  sorted_references = selected_references.sort_values(by='similarity', ascending=False)
47
+ print(sorted_references.shape[0])
48
  sorted_references = sorted_references.iloc[:3]
49
  sorted_references = selected_references.sort_values(by='similarity', ascending=True)
50
  print(sorted_references.shape[0])