Compatibility: Only available on Node.js.
TextLoader document loaders. For detailed documentation of all TextLoader features and configurations head to the API reference.
Overview
Integration details
| Class | Package | Compatibility | Local | PY support |
|---|---|---|---|---|
| TextLoader | langchain | Node-only | ✅ | ❌ |
Setup
To accessTextLoader document loader you’ll need to install the langchain package.
Installation
The LangChain TextLoader integration lives in thelangchain package:
Instantiation
Now we can instantiate our model object and load documents:Load
API reference
For detailed documentation of all TextLoader features and configurations head to the API reference.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.