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:
Class | Package | Compatibility | Local | PY support |
---|---|---|---|---|
DirectoryLoader | langchain | Node-only | ✅ | ✅ |
DirectoryLoader
document loader you’ll need to install the langchain
package.
langchain
package: