I have a use case where I need to add a line to the response from my chatbot. The response right now is pulling from Vector Embeddings stored in OpenSearch. The records in OpenSearch have the file path in the metadata, but the use case is:
if the file path is x/x/pdf, then at the end of the chat bot's response, it needs to say something along the lines of "For more information, please refer to {file-name-from-metadata.pdf}"
Do the retrieved nodes contain the metadata for the document path? If so, you can just add in your prompt something like: "At the end of your response provide the source document".