Skip to main content

并发加载器 (Concurrent Loader)

Works just like the GenericLoader but concurrently for those who choose to optimize their workflow. 与通用加载器 (GenericLoader) 类似,但对于那些选择优化工作流程的人来说,可以并发加载。

from langchain.document_loaders import ConcurrentLoader
loader = ConcurrentLoader.from_filesystem('example_data/', glob="**/*.txt")
files = loader.load()
len(files)
    2