Find answers from the community

Updated 8 months ago

How can I move my index created from

How can I move my index created from documents which is stored in memory to vector database without reprocessing the document? I am reading the index using storage context and trying to write it to elastic database but it's not working.
W
S
2 comments
Try with this
Plain Text
# Get all the nodes from the in memory index
nodes = index.docstore.docs

# Now add the nodes in the new index which contains third party vector store.
new_index = VectorStoreIndex(nodes, storage_context=storage_context)
Thanks @WhiteFang_Jr
Add a reply
Sign up and join the conversation on Discord