I have prototyped a retrieval system using the basic SimpleStore classes. I have persisted the data to disk. Now, I want to copy all that data into corresponding RedisStores. How would I do this?
For example, Here are my two storage contexts:
Simple:
StorageContext(docstore=<llama_index.core.storage.docstore.simple_docstore.SimpleDocumentStore object at 0x1497fd570>, index_store=<llama_index.core.storage.index_store.simple_index_store.SimpleIndexStore object at 0x1497fde40>, vector_stores={'image': <llama_index.core.vector_stores.simple.SimpleVectorStore object at 0x1497fe890>, 'default': <llama_index.core.vector_stores.simple.SimpleVectorStore object at 0x1497fe9e0>}, graph_store=<llama_index.core.graph_stores.simple.SimpleGraphStore object at 0x1497fde70>)
Redis:
StorageContext(docstore=<llama_index.storage.docstore.redis.base.RedisDocumentStore object at 0x1497fe4d0>, index_store=<llama_index.storage.index_store.redis.base.RedisIndexStore object at 0x1497fe110>, vector_stores={'default': RedisVectorStore(stores_text=True, is_embedding_query=True, stores_node=True, flat_metadata=False), 'image': <llama_index.core.vector_stores.simple.SimpleVectorStore object at 0x1497fe5c0>}, graph_store=<llama_index.core.graph_stores.simple.SimpleGraphStore object at 0x1497fe4a0>)