Specify a Prefix for Loading
If you want to load objects with a specific prefix from the bucket, you can use the following code:Get Authentication Information from ECS
If your langchain is deployed on Huawei Cloud ECS and Agency is set up, the loader can directly get the security token from ECS without needing access key and secret key.Use a Public Bucket
If your bucket’s bucket policy allows anonymous access (anonymous users havelistBucket
and GetObject
permissions), you can directly load the objects without configuring the config
parameter.