跳到主要内容
Open In ColabOpen on GitHub

并发加载器

功能与 GenericLoader 相同,但支持并发,适合希望优化工作流程的用户。

from langchain_community.document_loaders import ConcurrentLoader
API 参考:ConcurrentLoader
loader = ConcurrentLoader.from_filesystem("example_data/", glob="**/*.txt")
files = loader.load()
len(files)
2
© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档