Find answers from the community

Updated 3 months ago

Guys I am creating indexes and the using

Guys, I am creating indexes and the using TransformQueryEngine trying to query on the indexes and sending data to openAI, I want to print the data that I am fetching from my dataset and sending as context to openai. how to print it ?
L
a
2 comments
You can try checking the response object

response.source_nodes contains a list of all nodes used to create that answer, as well as their similarity scores (don't be surprised if the similarity scores are high. In my experience, anything above about 0.78 is a helpful node)
Thanks @Logan M but these nodes are exactly what is being sent to openAI?
Add a reply
Sign up and join the conversation on Discord