Skip to main content

Documentation Index

Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-naomid-1779801766-572e290.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

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.

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

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 databasesPackage

Audio & video

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

Other

Document LoaderDescriptionWeb SupportPackage/API
LangSmithLoad datasets and traces from LangSmithAPI

All document loaders

DirectoryLoader

Google Cloud SQL for PostgreSQL

JSON

JSONLines

LangSmith

MultiFileLoader

OracleDocLoader

Soniox

Text