Find answers from the community

Updated 2 years ago

I make a query and get a response

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
These source nodes only have the id to their original doc
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?
the id_map seems to contain some part of the node ids, but what's the mechanism here?
@jerryjliu0 could you explain how the different IDs work? Or point me to the docs?
@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?
Two things actually: embeddings per node yes, and the node ids of the response in GPTSimpleVectorIndex
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
Basically I'd just like to inform the user which original text chunks and files contributed to the response.
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