> ## Documentation Index
> Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-docscl-1781043860-248c713.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Document loader integrations

> Integrate with document loaders using LangChain JavaScript.

Document loaders provide a **standard interface** for reading data from different sources (such as Slack, Notion, or Google Drive) into LangChain's [Document](https://reference.langchain.com/javascript/langchain-core/documents/Document) format.
This ensures that data can be handled consistently regardless of the source.

All document loaders implement the [BaseLoader](https://reference.langchain.com/javascript/classes/_langchain_core.document_loaders_base.BaseDocumentLoader.html) interface.

<Warning>
  Community document loaders are user-contributed and unverified. LangChain does not review or endorse these integrations; use them at your own risk.
</Warning>

## 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.

```typescript theme={null}
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](/oss/javascript/integrations/document_loaders/file_loaders/), which load data into LangChain formats from your local filesystem.
* [Web loaders](/oss/javascript/integrations/document_loaders/web_loaders/), which load data from remote sources.

### File loaders

<Info>
  If you'd like to contribute an integration, see [Contributing integrations](/oss/javascript/contributing#add-a-new-integration).
</Info>

#### Common file types

| Document Loader                                                                           | Description                                                 | Package/API |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ----------- |
| [`DirectoryLoader`](/oss/javascript/integrations/document_loaders/file_loaders/directory) | Load all files from a directory with custom loader mappings | Package     |
| [JSON](/oss/javascript/integrations/document_loaders/file_loaders/json)                   | Load JSON files using JSON pointer to target specific keys  | Package     |
| [`JSONLines`](/oss/javascript/integrations/document_loaders/file_loaders/jsonlines)       | Load data from JSONLines/JSONL files                        | Package     |
| [`Text`](/oss/javascript/integrations/document_loaders/file_loaders/text)                 | Load plain text files                                       | Package     |

#### Specialized file loaders

| Document Loader                                                                            | Description                                                          | Package/API |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- | ----------- |
| [`MultiFileLoader`](/oss/javascript/integrations/document_loaders/file_loaders/multi_file) | Load data from multiple individual file paths                        | Package     |
| [`OracleDocLoader`](/oss/javascript/integrations/document_loaders/file_loaders/oracleai)   | Ingest Oracle AI Vector Search tables or Oracle Text-supported files | Package     |

### Web loaders

#### Cloud providers

| Document Loader                                                                                                 | Description                                        | Web Support | Package/API |
| --------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- | :---------: | ----------- |
| [Google Cloud SQL for PostgreSQL](/oss/javascript/integrations/document_loaders/web_loaders/google_cloudsql_pg) | Load documents from Cloud SQL PostgreSQL databases |      ✅      | Package     |

#### Audio & video

| Document Loader                                                              | Description                                                                    | Web Support | Package/API |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | :---------: | ----------- |
| [`Soniox`](/oss/javascript/integrations/document_loaders/web_loaders/soniox) | Transcribe multilingual audio files with optional translation using Soniox API |      ✅      | API         |

#### Other

| Document Loader                                                                    | Description                             | Web Support | Package/API |
| ---------------------------------------------------------------------------------- | --------------------------------------- | :---------: | ----------- |
| [`LangSmith`](/oss/javascript/integrations/document_loaders/web_loaders/langsmith) | Load datasets and traces from LangSmith |      ✅      | API         |

## All document loaders

<Columns cols={3}>
  <Card title="DirectoryLoader" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/directory" arrow="true" cta="View guide" />

  <Card title="Google Cloud SQL for PostgreSQL" icon="link" href="/oss/javascript/integrations/document_loaders/web_loaders/google_cloudsql_pg" arrow="true" cta="View guide" />

  <Card title="JSON" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/json" arrow="true" cta="View guide" />

  <Card title="JSONLines" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/jsonlines" arrow="true" cta="View guide" />

  <Card title="LangSmith" icon="link" href="/oss/javascript/integrations/document_loaders/web_loaders/langsmith" arrow="true" cta="View guide" />

  <Card title="MultiFileLoader" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/multi_file" arrow="true" cta="View guide" />

  <Card title="OracleDocLoader" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/oracleai" arrow="true" cta="View guide" />

  <Card title="Soniox" icon="link" href="/oss/javascript/integrations/document_loaders/web_loaders/soniox" arrow="true" cta="View guide" />

  <Card title="Text" icon="link" href="/oss/javascript/integrations/document_loaders/file_loaders/text" arrow="true" cta="View guide" />
</Columns>

***

<div className="source-links">
  <Callout icon="terminal-2">
    [Connect these docs](/use-these-docs) to Claude, VSCode, and more via MCP for real-time answers.
  </Callout>

  <Callout icon="edit">
    [Edit this page on GitHub](https://github.com/langchain-ai/docs/edit/main/src/oss/javascript/integrations/document_loaders/index.mdx) or [file an issue](https://github.com/langchain-ai/docs/issues/new/choose).
  </Callout>
</div>
