Skip to main content
The following code demonstrates how to load an object from the Huawei OBS (Object Storage Service) as document.

Each loader with separate authentication information

If you don’t need to reuse OBS connections between different loaders, you can directly configure the config. The loader will use the config information to initialize its own OBS client.

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.

Access a publicly accessible object

If the object you want to access allows anonymous user access (anonymous users have GetObject permission), you can directly load the object without configuring the config parameter.

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