Find answers from the community

Updated 6 months ago

Hi, how do I see the embeddings that are

At a glance

The community member is trying to understand where the embeddings generated by the VectorStoreIndex are stored. They note that when iterating over the nodes of the index, the TextNode objects have embeddings=None. In the comments, another community member provides the answer that the embeddings are stored in the vector store, specifically in index.vector_store._data.embedding_dict, which maps node IDs to their corresponding embedding vectors. However, another community member notes that the index.index_struct.nodes_dict seems to store a different mapping, which was confusing.

Hi, how do I see the embeddings that are generated by the VectorStoreIndex for each of the nodes?
When I iterate over the nodes of the index, I find that the TextNode object has embeddings=None.
Now, I am wondering where the embeddings are stored.
Attachment
285792449-48da80d5-4fcc-4d52-a8e7-731e2091ce54.png
L
d
4 comments
embeddings are stored in the vector store.

index.vector_store._data.embedding_dict is a dict mapping node node_ids -> embedding vectors
Thanks @Logan M.
However the index.index_struct.nodes_dict seems to store the mapping between node ids to itself. This made things confusing.
Yea it used to be a mapping of different ids, bit really it just just be a list now instead of dict.
Add a reply
Sign up and join the conversation on Discord