llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

Reading PDF file from cloud storage (GCS)

Open ctle-vn opened this issue 1 year ago • 0 comments

Hi there,

Came across SimpleDirectoryReader which lets you read in a file, given the file path.

I have files that I store on cloud (Google Cloud Storage) that I fetch from. Is there a way to use SimpleDirectoryReader without the path that's required, but instead provide the file itself?

Currently I workaround it with the following by parsing myself and providing the documents to GPTSimpleVectorIndex.

ctle-vn avatar Mar 19 '23 23:03 ctle-vn