Amazon Simple Storage Service (Amazon S3)는 객체 스토리지 서비스입니다.
AWS S3 Buckets
이 문서는 AWS S3 File 객체에서 document 객체를 로드하는 방법을 다룹니다.
from langchain_community.document_loaders import S3FileLoader
pip install -qU  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)]

AWS Boto3 client 구성하기

S3DirectoryLoader를 생성할 때 named argument를 전달하여 AWS Boto3 client를 구성할 수 있습니다. 이는 예를 들어 AWS 자격 증명을 환경 변수로 설정할 수 없는 경우에 유용합니다. 구성할 수 있는 매개변수 목록을 참조하세요.
loader = S3FileLoader(
    "testing-hwc", "fake.docx", aws_access_key_id="xxxx", aws_secret_access_key="yyyy"
)
loader.load()

Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.
I