Spaces:
Build error
Build error
Update app.py
Browse files
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
|