I am building a retriever using llamaindex's display_source_node function :
for node in nodes:
display_source_node(node, source_length=10000)
and it returns a structure like so:
Node ID: d4d67180-71c8-4328-b3f1-1e98fa42ab69
Similarity: 0.8694979150607424
Text: We also list two qualitative examples where safety [...]
This is great, but can I somehow return the Source Document (name of the file + extension) to which the text belongs?
Node ID:
Source Document: example5.pdf
Similarity:
Text:
Something like this ?