Our new LangChain Academy Course Deep Research with LangGraph is now live! Enroll for free.
OSS (v1-alpha)
LangChain and LangGraph
Amazon Simple Storage Service (Amazon S3) is an object storage service.
AWS S3 Buckets
AWS S3 File
from langchain_community.document_loaders import S3FileLoader
%pip install --upgrade --quiet boto3
loader = S3FileLoader("testing-hwc", "fake.docx")
loader.load()
[Document(page_content='Lorem ipsum dolor sit amet.', lookup_str='', metadata={'source': 's3://testing-hwc/fake.docx'}, lookup_index=0)]
loader = S3FileLoader( "testing-hwc", "fake.docx", aws_access_key_id="xxxx", aws_secret_access_key="yyyy" )