Find answers from the community

Updated 11 months ago

Hi - I want to get all nodes from my

Hi - I want to get all nodes from my index, just in their raw format so I can log node_id and corresponding text for later evaluation

GPTVectorStoreIndex.from_vector_store

How do I do this?
W
H
4 comments
Are you using third party vector_store? If not then you can fetch all the nodes from Docstore like:
nodes = index.docstore.docs
Ah yes, I am using Chroma!
Chroma does not provide the way to extract nodes in their Vector Store code: https://github.com/run-llama/llama_index/blob/main/llama_index/vector_stores/chroma.py

But if you are ingesting for the first time then it can be extracted like this
ok great thank you
Add a reply
Sign up and join the conversation on Discord