index = load_index_from_storage(storage_context, service_context=service_context)
node_dict
to pass into the RecursiveRetriever constructor:retriever_chunk = RecursiveRetriever( "vector", retriever_dict={"vector": vector_retriever_chunk}, node_dict=all_nodes_dict, verbose=True, )
index = VectorStoreIndex.from_vector_store( vector_store, service_context=service_context, )
from llama_index.storage.docstore import SimpleDocumentStore docstore = SimpleDocumentStore() docstore.add_documents(documents) docstore.persist(persist_path="./docstore.json") new_docstore = SimpleDocumentStore.from_persist_path("./docstore.json")
all_nodes_dict
after loading it from the persisted vector store?