node_id_to_embedding = index.vector_store._data.embedding_dict node_id_to_node = index.docstore.docs final_nodes = [] for node_id, node in node_id_to_node.items(): node.embedding = node_id_to_embedding[node_id] final_nodes.append(node) index = VectorStoreIndex(nodes=final_nodes, storage_context=opensearch_storage_context)