----------------------
To get the source of the LLM response while querying over the text files, you can use the
get_formatted_sources()
method on the response object. Here is an example of how you can do it:
print(response.get_formatted_sources())
This method will return the sources of the response in a formatted manner.
You can also display the sources of the evaluation results using the
display_eval_sources()
function:
display_eval_sources(query_str, response_vector, eval_source_result)
This function will display the source and evaluation result in a tabular format.
For more detailed information, you can refer to the following sources:
- SimpleIndexDemo.ipynb ()
- relevancy_eval ()
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------