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 2 years ago
0
Follow
I make a query and get a response
I make a query and get a response
Inactive
0
Follow
M
Mikko
2 years ago
Β·
I make a query, and get a response. Response has this list of source nodes. I would like to map these to embeddings. How?
M
j
9 comments
Share
Open in Discord
M
Mikko
2 years ago
These source nodes only have the id to their original doc
M
Mikko
2 years ago
I thought the id_map in the index would map embeddings to nodes, but it doesn't seem to do that.. so whats the way?
M
Mikko
2 years ago
the id_map seems to contain some part of the node ids, but what's the mechanism here?
M
Mikko
2 years ago
@jerryjliu0 could you explain how the different IDs work? Or point me to the docs?
j
jerryjliu0
2 years ago
@Mikko the source node just points to the original id of the document (a document can have multiple nodes deried from it). are you just asking if you can get the embedding per node?
M
Mikko
2 years ago
Two things actually: embeddings per node yes, and the node ids of the response in GPTSimpleVectorIndex
j
jerryjliu0
2 years ago
I see. (1) i can take a look at. (2) nodes weren't meant to be external facing but if that's a need I can try exposing it
M
Mikko
2 years ago
Basically I'd just like to inform the user which original text chunks and files contributed to the response.
M
Mikko
2 years ago
I would think this information is available at query time, but am I wrong?
Add a reply
Sign up and join the conversation on Discord
Join on Discord