mirror of
https://github.com/langchain-ai/langchain.git
synced 2026-10-05 09:25:14 +03:00
Works just like the GenericLoader but concurrently for those who choose to optimize their workflow. @rlancemartin @eyurtsev --------- Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
1.7 KiB
1.7 KiB
In [3]:
from langchain.document_loaders import ConcurrentLoaderIn [8]:
loader = ConcurrentLoader.from_filesystem('example_data/', glob="**/*.txt")In [9]:
files = loader.load()In [12]:
len(files)Out [12]:
2
In [ ]: