readded reverse
Browse files
app.py
CHANGED
|
@@ -384,8 +384,8 @@ class BSIChatbot:
|
|
| 384 |
#newprint("DBG:retrieved_chunks_text after rerank")
|
| 385 |
#newprint(type(retrieved_chunks_text))
|
| 386 |
#newprint(retrieved_chunks_text)a
|
| 387 |
-
for chunk in reversed(retrieved_chunks_text):
|
| 388 |
-
print(chunk
|
| 389 |
retrieved_chunks_text = [chunk["content"] for chunk in reversed(retrieved_chunks_text)]
|
| 390 |
|
| 391 |
#retrieved_chunks_text = [chunk["content"] for chunk in retrieved_chunks_text]
|
|
|
|
| 384 |
#newprint("DBG:retrieved_chunks_text after rerank")
|
| 385 |
#newprint(type(retrieved_chunks_text))
|
| 386 |
#newprint(retrieved_chunks_text)a
|
| 387 |
+
#for chunk in reversed(retrieved_chunks_text):
|
| 388 |
+
#print(chunk["rank"])
|
| 389 |
retrieved_chunks_text = [chunk["content"] for chunk in reversed(retrieved_chunks_text)]
|
| 390 |
|
| 391 |
#retrieved_chunks_text = [chunk["content"] for chunk in retrieved_chunks_text]
|