Python
使用 LangChain Python 集成并发加载器文档加载器。
from langchain_community.document_loaders import ConcurrentLoader
loader = ConcurrentLoader.from_filesystem("example_data/", glob="**/*.txt")
files = loader.load()
len(files)
2