Spaces:
Sleeping
Sleeping
Goodnight7
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -67,8 +67,10 @@ if prompt :
|
|
67 |
st.session_state.run_id = cb.traced_runs[0].id
|
68 |
message_placeholder.markdown(full_response)
|
69 |
if used_docs:
|
70 |
-
docs_content = "\n\n".join(
|
71 |
-
|
|
|
|
|
72 |
|
73 |
|
74 |
with st.sidebar:
|
|
|
67 |
st.session_state.run_id = cb.traced_runs[0].id
|
68 |
message_placeholder.markdown(full_response)
|
69 |
if used_docs:
|
70 |
+
docs_content = "\n\n".join(
|
71 |
+
f"Doc {i + 1}:\n{doc.page_content}\nMetadata: {doc.metadata}\n"
|
72 |
+
for i, doc in enumerate(used_docs)
|
73 |
+
)
|
74 |
|
75 |
|
76 |
with st.sidebar:
|