NaimaAqeel commited on
Commit
0f90f97
·
verified ·
1 Parent(s): 9afffa7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def query_text(text):
131
  else:
132
  print(f"Invalid index found: {idx}")
133
 
134
- # Remove duplicates
135
  top_documents = list(dict.fromkeys(top_documents))
136
 
137
  return top_documents
 
131
  else:
132
  print(f"Invalid index found: {idx}")
133
 
134
+ # Remove duplicates and sort by relevance
135
  top_documents = list(dict.fromkeys(top_documents))
136
 
137
  return top_documents