Skip to main content
兼容性Only available on Node.js.
This covers how to load a Google Cloud Storage File into LangChain documents.

设置

To use this loader, you’ll need to have Unstructured already set up and ready to use at an available URL endpoint. It can also be configured to run locally. See the Unstructured file loaders documentation for information on how to do that. You’ll also need to install the official Google Cloud Storage SDK:
npm

用法

Once Unstructured is configured, you can use the Google Cloud Storage loader to load files and then convert them into a Document. In addition, you can optionally provide a storageOptions parameter to specify not only your storage options but also other authentication ways if you don’t want Application Default Credentials(ADC) as default manner.