Hey people,
I have this
s3 = s3fs.S3FileSystem(
key=AWS_KEY,
secret=AWS_SECRET,
endpoint_url=S3_BUCKET_URL
)
def add_new_doc(name, filename, index_set):
with open(filename, "r") as f:
doc = f.read()
storage_context = StorageContext.from_defaults(fs=s3)
index_set[name] = VectorStoreIndex.from_documents(
[Document(text=doc)],
service_context=service_context,
storage_context=storage_context,
)
storage_context.persist(persist_dir=f'bucket-name/{name}')
return index_set
however the index for the specific file is still being saved into the local file, and doesnt go into s3, there are no errors