langchain_community.document_loaders.merge
.MergedDataLoader¶
- class langchain_community.document_loaders.merge.MergedDataLoader(loaders: List)[source]¶
从加载器列表中合并文档
使用加载器列表进行初始化
Methods
__init__
(loaders)使用加载器列表进行初始化
从每个单独的加载器中延迟加载文档。
aload
()将数据加载到文档对象中。
从每个单独的加载器中延迟加载文档。
load
()将数据加载到文档对象中。
load_and_split
([text_splitter])加载文档并分割成块。块作为文档返回。
- Parameters
loaders (List) –
- async alazy_load() AsyncIterator[Document] [source]¶
从每个单独的加载器中延迟加载文档。
- Return type
AsyncIterator[Document]
- load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document] ¶
加载文档并分割成块。块作为文档返回。
不要覆盖此方法。应该被视为已弃用!
- 参数:
- text_splitter: 用于分割文档的TextSplitter实例。
默认为RecursiveCharacterTextSplitter。
- 返回:
文档列表。
- Parameters
text_splitter (Optional[TextSplitter]) –
- Return type
List[Document]