Find answers from the community

Updated 3 months ago

Can I get node text by node ID in

Can I get node text by node ID in VectorStoreIndex?
I create a index like this, I know text and ID of a node. How may I get embedded vector of this node?
Plain Text
index = VectorStoreIndex(
        nodes, embed_model=embed_model, show_progress=True
    )
W
1 comment
You can get the embedding like this if you have generated embeddings locally.

Plain Text
index = VectorStoreIndex.from_documents([Document(text="text")])

print(index.vector_store._data.embedding_dict)


it will give you a dict
Add a reply
Sign up and join the conversation on Discord