This notebook provides a quick overview for getting started withDocumentation Index
Fetch the complete documentation index at: https://docs.langchain.com/llms.txt
Use this file to discover all available pages before exploring further.
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:
Instantiation
Now we can instantiate our model object and load documents:Load
API reference
For detailed documentation of allDirectoryLoader features and configurations head to the API reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

