Amazon Simple Storage Service (Amazon S3) is an object storage service
AWS S3 DirectoryThis covers how to load document objects from an
AWS S3 Directory object.
We've raised a $125M Series B to build the platform for agent engineering. Read more.
Amazon Simple Storage Service (Amazon S3) is an object storage service
AWS S3 DirectoryThis covers how to load document objects from an
AWS S3 Directory object.
pip install -qU boto3
from langchain_community.document_loaders import S3DirectoryLoader
loader = S3DirectoryLoader("testing-hwc")
loader.load()
loader = S3DirectoryLoader("testing-hwc", prefix="fake")
loader.load()
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 's3://testing-hwc/fake.docx'}, lookup_index=0)]
loader = S3DirectoryLoader(
"testing-hwc", aws_access_key_id="xxxx", aws_secret_access_key="yyyy"
)
loader.load()
Was this page helpful?