文档加载器
¥Document loaders
文档加载器旨在加载文档对象。LangChain 集成了数百种数据源,可从中加载数据:Slack、Notion、Google Drive 等。
¥Document loaders are designed to load document objects. LangChain has hundreds of integrations with various data sources to load data from: Slack, Notion, Google Drive, etc.
集成
¥Integrations
你可以在 文档加载器集成页面 上找到可用的集成。
¥You can find available integrations on the Document loaders integrations page.
接口
¥Interface
文档加载器实现了 BaseLoader 接口。
¥Documents loaders implement the BaseLoader interface.
每个 DocumentLoader 都有其特定的参数,但它们都可以使用 .load
方法或 .lazy_load
以相同的方式调用。
¥Each DocumentLoader has its own specific parameters, but they can all be invoked in the same way with the .load
method or .lazy_load
.
以下是一个简单的示例:
¥Here's a simple example:
import { CSVLoader } from "@langchain/community/document_loaders/fs/csv";
const loader = new CSVLoader(
... // <-- Integration specific parameters here
);
const data = await loader.load();
相关资源
¥Related resources
请参阅以下资源了解更多信息:
¥Please see the following resources for more information: