Tencent COS File
Tencent Cloud Object Storage (COS) is a distributedstorage service that enables you to store any amount of data from anywhere via HTTP/HTTPS protocols.
COS
has no restrictions on data structure or format. It also has no bucket size limit andpartition management, making it suitable for virtually any use case, such as data delivery,data processing, and data lakes.COS
provides a web-based console, multi-language SDKs and APIs,command line tool, and graphical tools. It works well with Amazon S3 APIs, allowing you to quicklyaccess community tools and plugins.
This covers how to load document object from aTencent COS File
.
%pip install--upgrade--quiet cos-python-sdk-v5
from langchain_community.document_loadersimport TencentCOSFileLoader
from qcloud_cosimport CosConfig
API Reference:TencentCOSFileLoader
conf= CosConfig(
Region="your cos region",
SecretId="your cos secret_id",
SecretKey="your cos secret_key",
)
loader= TencentCOSFileLoader(conf=conf, bucket="you_cos_bucket", key="fake.docx")
loader.load()
Related
- Document loaderconceptual guide
- Document loaderhow-to guides