Spaces:
Sleeping
Sleeping
Goodnight7
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -68,14 +68,14 @@ if prompt :
|
|
68 |
message_placeholder.markdown(full_response)
|
69 |
if used_docs :
|
70 |
docs_content = "\n\n".join(
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
|
80 |
|
81 |
|
|
|
68 |
message_placeholder.markdown(full_response)
|
69 |
if used_docs :
|
70 |
docs_content = "\n\n".join(
|
71 |
+
[
|
72 |
+
f"Doc {i + 1}:\n"
|
73 |
+
f"Source: {doc.metadata.get('source', 'N/A')}\n"
|
74 |
+
f"Title: {doc.metadata.get('title', 'N/A')}\n"
|
75 |
+
f"Content: {doc.page_content}\n"
|
76 |
+
for i, doc in enumerate(used_docs)
|
77 |
+
]
|
78 |
+
)
|
79 |
|
80 |
|
81 |
|