The community member is trying to retrieve nodes from a VectorStoreIndex, but index.docstore.docs.values() is always an empty dictionary. Other community members suggest that the issue may be related to using a third-party vector store, such as ChromaVectorStore. They provide some guidance on how to retrieve the nodes, including using vector_store._collection.get() and setting the store_nodes_override parameter to True when creating the VectorStoreIndex. However, there is no explicitly marked answer in the comments.
If it is a vectorStoreIndex, once indexing is completed you'll have to persist the index in case you want to have the nodes back when loading from local directory.
Third party vector stores disable the docstore by default to simplify storage. You can override this, or use a chroma client directly to get everything