Skip to main content

Concurrent Loader

Works just like the GenericLoader but concurrently for those who choose to optimize their workflow.

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

Help us out by providing feedback on this documentation page: