Skip to main content
Open In ColabOpen on GitHub

Tigris Files

Tigris is a globally distributed object storage service, allowing your files to load fast anywhere in the world.

This covers how to load document objects from an AWS S3 File object via Tigris.

from langchain_community.document_loaders import S3FileLoader
%pip install --upgrade --quiet  boto3
loader = S3FileLoader(
"testing-hwc", # put your bucket name here
"fake.docx", # put your file name here
aws_access_key_id="tid_access_key_id", # put your access key ID here
aws_secret_access_key="tsec_secret_access_key", # put your secret access key here
region="auto",
endpoint_url="https://t3.storage.dev",
)
loader.load()
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 's3://testing-hwc/fake.docx'}, lookup_index=0)]