Find answers from the community

Updated 11 months ago

Hey guys, wanted to ask if there's a way

At a glance

The community member asked if there is a way to get resources at the end of the chat engine response, meaning to show the user where the answer's content came from. In the comments, another community member suggested using print(response.source_nodes) to get the nodes that were used to generate the final response. The original poster then thanked the commenter, indicating that the suggestion was helpful.

Hey guys, wanted to ask if there's a way to get resources at the end of the chat engine response? By resources I mean to show the user from where did the answer's content came from.
W
T
3 comments
Hey, Try with print(response.source_nodes)
It will contain the nodes that were used to generate the final response
Thanks! That helped!
Add a reply
Sign up and join the conversation on Discord