DirectoryLoader
document loaders. For detailed documentation of all DirectoryLoader
features and configurations head to the API reference.
This example goes over how to load data from folders with multiple files. The second argument is a map of file extensions to loader factories. Each file will be passed to the matching loader, and the resulting documents will be concatenated together.
Example folder:
Overview
Integration details
Class | Package | Compatibility | Local | PY support |
---|---|---|---|---|
DirectoryLoader | langchain | Node-only | ✅ | ✅ |
Setup
To accessDirectoryLoader
document loader you’ll need to install the langchain
package.
Installation
The LangChain DirectoryLoader integration lives in thelangchain
package: