Skip to main content

Document loader integrations

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.

Warning

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.
import { OracleDocLoader } from "@oracle/langchain-oracledb";

const loader = new OracleDocLoader(,
  ...  // <-- Integration specific parameters here
);
const data = await loader.load();

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

Info

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

Common file types

Document LoaderDescriptionPackage/API
DirectoryLoaderLoad all files from a directory with custom loader mappingsPackage
JSONLoad JSON files using JSON pointer to target specific keysPackage
JSONLinesLoad data from JSONLines/JSONL filesPackage
TextLoad plain text filesPackage

Specialized file loaders

Document LoaderDescriptionPackage/API
MultiFileLoaderLoad data from multiple individual file pathsPackage
OracleDocLoaderIngest Oracle AI Vector Search tables or Oracle Text-supported filesPackage

Web loaders

Cloud providers

Document LoaderDescriptionWeb SupportPackage/API
Google Cloud SQL for PostgreSQLLoad documents from Cloud SQL PostgreSQL databases✅Package

Audio & video

Document LoaderDescriptionWeb SupportPackage/API
SonioxTranscribe multilingual audio files with optional translation using Soniox API✅API

Other

Document LoaderDescriptionWeb SupportPackage/API
LangSmithLoad datasets and traces from LangSmith✅API

All document loaders