Skip to content

Commit

Permalink
list of Sources print proper citation style
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantisan committed Sep 26, 2023
1 parent 76f2ea4 commit 45e20a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mind_palace/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def load_index(model):

st.markdown("### Sources")
for i, source_node in enumerate(response.source_nodes):
with st.expander(f"[{i + 1}] {source_node.node.node_id}"):
with st.expander(f"[{i + 1}] {source_node.node.metadata['citation']}"):
st.write(f"relevancy score: {source_node.score}")
st.write("original text:")
st.write(source_node.node.get_text().split(":", 1)[1])

0 comments on commit 45e20a9

Please sign in to comment.