Including the cited data in response

How can I include the source such as file_name, page_number, etc. in my response? Thanks!

1 Like

Hi @crasch0283,

Including “the source such as file_name, page_number, etc” in the response is not a straight forward process, and there are few ways of how you can achieve this.

For example, you can start by adding the metadata of the file at the beginning when you upload the file. You can use LlamaIndex vector indexer to structure the pages. You can as well use the prompt to instruct the model to print the sources and page numbers each time.

To fully understand how to achieve this, I advise you to go through the documentation pages, and to experiment a bit until you reach your objective.

I hope this helps.

Samuel

2 Likes