Tesneem commited on
Commit
c2d3734
·
verified ·
1 Parent(s): 1794809

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -494,6 +494,7 @@ 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.markdown(f"**Chunk ID:** {doc.metadata.get('chunk_id', 'unknown')} | **Title:** {doc.metadata.get('title', 'unknown')}")
498
  st.markdown(doc.page_content[:700] + "...")
499
  st.markdown("---")
 
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("---")