Update app.py
Browse files
app.py
CHANGED
|
@@ -150,8 +150,9 @@ def retrieve_from_rag(user_query, chat_history):
|
|
| 150 |
documents.append({
|
| 151 |
"content": content.strip(),
|
| 152 |
"metadata": metadata
|
| 153 |
-
|
| 154 |
})
|
|
|
|
| 155 |
|
| 156 |
# Rerank with BM25
|
| 157 |
top_docs = rerank_with_bm25(documents, user_query)
|
|
|
|
| 150 |
documents.append({
|
| 151 |
"content": content.strip(),
|
| 152 |
"metadata": metadata
|
| 153 |
+
|
| 154 |
})
|
| 155 |
+
print(metadata)
|
| 156 |
|
| 157 |
# Rerank with BM25
|
| 158 |
top_docs = rerank_with_bm25(documents, user_query)
|