Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -91,7 +91,7 @@ def get_top_chunks(query, chunk_embeddings, text_chunks):
|
|
| 91 |
|
| 92 |
# Loop through the top indices and retrieve the corresponding text chunks
|
| 93 |
for i in top_indices:
|
| 94 |
-
top_chunks.append(
|
| 95 |
|
| 96 |
# Return the list of most relevant chunks
|
| 97 |
return top_chunks
|
|
|
|
| 91 |
|
| 92 |
# Loop through the top indices and retrieve the corresponding text chunks
|
| 93 |
for i in top_indices:
|
| 94 |
+
top_chunks.append(text_chunks[i])
|
| 95 |
|
| 96 |
# Return the list of most relevant chunks
|
| 97 |
return top_chunks
|