Find answers from the community

Updated 2 years ago

Can I ask a quick question about the get

Can I ask a quick question about the get_nodes_for_response, can this be used to see which data is being sent to gpt3? If so, how can i use it (how do I call it?)
j
T
2 comments
yeah! you can actually fetch those nodes in the response object as well. e..g
Plain Text
response = index.query(...)
response.source_nodes

they contain a reference to the text chunk and also underlying document https://gpt-index.readthedocs.io/en/latest/guides/usage_pattern.html#parsing-the-response
Exactly what I was looking for, thank you!
Add a reply
Sign up and join the conversation on Discord