UnstructuredLoader document loaders. For detailed documentation of all UnstructuredLoader features and configurations head to the API reference.
概述
集成详情
设置
要访问UnstructuredLoader document loader,你需要install the @langchain/community integration package, and create an Unstructured account and get an API key.
Local
You can run Unstructured locally in your computer using Docker. To do so, you need to have Docker installed.凭证
前往 unstructured.io 注册 Unstructured 并生成 API 密钥。完成后设置UNSTRUCTURED_API_KEY 环境变量:
安装
LangChain 的 UnstructuredLoader 集成位于@langchain/community 包中:
实例化
Now we can instantiate our model object and load documents:Load
Directories
You can also load all of the files in the directory usingUnstructuredDirectoryLoader, which inherits from DirectoryLoader:
API 参考
有关所有UnstructuredLoader 功能和配置的详细文档,请前往 API 参考。
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

