#persist the nodes index.storage_context.persist() .... # load the persist nodes index = load_index_from_storage(StorageContext.from_defaults(), service_context=service_context) # get nodes nodes = index.docstore.docs #use it further in your retriever