----------------------
To include sources in the response when using GPT index, you can use the
get_formatted_sources()
method. Here's an example from the
Simple Index Demo (
https://github.com/jerryjliu/gpt_index/tree/main/examples/vector_indices/SimpleIndexDemo.ipynb):
print(response.get_formatted_sources())
This method will print the sources associated with the response in a formatted manner.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------