Skip to main content
Document loaders provide a standard interface for reading data from different sources (such as Slack, Notion, or Google Drive) into LangChain’s Document format. This ensures that data can be handled consistently regardless of the source. All document loaders implement the BaseLoader interface.
Community document loaders are user-contributed and unverified. LangChain does not review or endorse these integrations; use them at your own risk.

Interface

Each document loader may define its own parameters, but they share a common API:
  • load(): Loads all documents at once.
  • loadAndSplit(): Loads all documents at once and splits them into smaller documents.

By category

LangChain.js categorizes document loaders in two different ways:
  • File loaders, which load data into LangChain formats from your local filesystem.
  • Web loaders, which load data from remote sources.

File loaders

If you’d like to contribute an integration, see Contributing integrations.

Common file types

Specialized file loaders

Web loaders

Cloud providers

Audio & video

Other

All document loaders

DirectoryLoader

Google Cloud SQL for PostgreSQL

JSON

JSONLines

LangSmith

MultiFileLoader

OracleDocLoader

Soniox

Text