Update app.py
Browse files
app.py
CHANGED
@@ -88,10 +88,10 @@ def main(vectorstore):
|
|
88 |
response = conversation_chain.invoke(input_dict, config)
|
89 |
st.chat_message("ai").write(response["answer"])
|
90 |
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
else:
|
96 |
st.error("Conversation chain is not available.")
|
97 |
|
|
|
88 |
response = conversation_chain.invoke(input_dict, config)
|
89 |
st.chat_message("ai").write(response["answer"])
|
90 |
|
91 |
+
if "docs" in response and response["documents"]:
|
92 |
+
for index, doc in enumerate(response["documents"]):
|
93 |
+
with st.expander(f"Document {index + 1}"):
|
94 |
+
st.write(doc)
|
95 |
else:
|
96 |
st.error("Conversation chain is not available.")
|
97 |
|