Find answers from the community

Updated 2 years ago

I was originally loading an index into

I was originally loading an index into string and then saving that to S3. It looks like save_to_string has been replaced by StorageContext. How would I save it to S3?

Plain Text
from llama_index import StorageContext, load_index_from_storage

# rebuild storage context
storage_context = StorageContext.from_defaults(persist_dir="./storage")
# load index
index = load_index_from_storage(storage_context)

I'm assuming I can't pass in my S3 bucket to persist_dr since it requires the aws sdk
L
d
3 comments
@disiok I thought I remember seeing a PR to add save_to_string back somehow. Did that get merged? Seems like an important functionality for supporting AWS

(also, official aws support should hopefully be coming soon in the pipeline)
Still need to add that back to the docs
Add a reply
Sign up and join the conversation on Discord