Skip to main content

并发加载器

对于那些选择优化工作流程的人来说,与通用加载器的工作方式相同,但具有并发加载功能。

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

Was this page helpful?


You can leave detailed feedback on GitHub.