Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -494,8 +494,8 @@ def main():
|
|
494 |
with st.expander("🔍 Retrieved Chunks"):
|
495 |
context_docs = retriever.get_relevant_documents(full_query)
|
496 |
for doc in context_docs:
|
497 |
-
st.json(doc.metadata)
|
498 |
-
st.markdown(f"**Chunk ID:** {doc.metadata.get('chunk_id', 'unknown')} | **Title:** {doc.metadata.get('title', 'unknown')}")
|
499 |
st.markdown(doc.page_content[:700] + "...")
|
500 |
st.markdown("---")
|
501 |
|
|
|
494 |
with st.expander("🔍 Retrieved Chunks"):
|
495 |
context_docs = retriever.get_relevant_documents(full_query)
|
496 |
for doc in context_docs:
|
497 |
+
# st.json(doc.metadata)
|
498 |
+
st.markdown(f"**Chunk ID:** {doc.metadata.get('chunk_id', 'unknown')} | **Title:** {doc.metadata['metadata'].get('title', 'unknown')}")
|
499 |
st.markdown(doc.page_content[:700] + "...")
|
500 |
st.markdown("---")
|
501 |
|