Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Anybody know how to let the
Anybody know how to let the
Inactive
0
Follow
J
JasperGA
2 years ago
Β·
Anybody know how to let the GPTSimpleVectorIndex.query() returns not only the answer, but also the doc_id where the answer from? Thx
L
J
2 comments
Share
Open in Discord
L
Logan M
2 years ago
It already does! :dotsHARDSTYLE:
response.source_nodes
which returns a list
response.source_nodes[0].node.ref_doc_id
Gets the ref doc id
J
JasperGA
2 years ago
Thank you so much!!
Add a reply
Sign up and join the conversation on Discord
Join on Discord