Find answers from the community

Updated 2 months ago

I have metadata stored in my Vector

I have metadata stored in my Vector store for each file as so:
documents in the docs directory have the "document_link" metadata
documents in the pdfs directory have the "file_name" metadata

At the end my chat bot's response I need it to give either the document_link or file_name from which it used to answer the question it was asked, where would I go about this, and is there any docs I can follow?
T
1 comment
You can prompt the LLM to include them in the response. Or alternatively you can directly access them:

Plain Text
print(response.source_nodes)
Add a reply
Sign up and join the conversation on Discord