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.

Integration components

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.
  • lazy_load(): Streams documents lazily, useful for large datasets.
from langchain_docling.loader import DoclingLoader

FILE_PATH = "https://arxiv.org/pdf/2408.09869"

loader = DoclingLoader(file_path=FILE_PATH)

# Load all documents
documents = loader.load()

# For large datasets, lazily load documents
for document in loader.lazy_load():
    print(document)

By category

Productivity tools

The below document loaders allow you to load data from commonly used productivity tools.

Webpages

The below document loaders allow you to load webpages.

Document LoaderDescriptionPackage/API
UnstructuredUses Unstructured to load and parse web pagesPackage
Apify DatasetLoad documents from Apify datasetsAPI
Apify CrawlCrawl a website on demand and load each page as a DocumentAPI
Diffbot Crawl LoaderCrawl a website and load each page as ontologically consistent JSON using the Diffbot Crawl APIAPI
Diffbot Extract LoaderLoad web pages as ontologically consistent JSON using the Diffbot Extract APIAPI
DoclingUses Docling to load and parse web pagesPackage
DomPrunerDOM AST pruning: loads web pages as compact Markdown with 97%+ token reduction, no API keyPackage
FirecrawlTurns websites into clean, LLM-ready data via scrape/crawl/map/extract/searchAPI
HyperbrowserPlatform for running and scaling headless browsers, can be used to scrape/crawl any siteAPI
OpeddFeedLoaderLoad a licensed Opedd content catalog as Documents with licensing provenanceAPI
ProxyHatLoaderLoad web pages through ProxyHat residential proxies as DocumentsAPI
AgentQLWeb interaction and structured data extraction from any web page using an AgentQL query or a Natural Language promptAPI
CRWOpen-source Firecrawl-compatible web scraper via local binary or fastcrw.com cloudPackage
PlasmateAgent-native headless browser with Set of Mark (SOM) structured UI extractionPackage
SpidraAI-powered web scraper with real browsers, CAPTCHA solving, and structured data extractionAPI

PDFs

Partner and community loaders for PDF files. Hosted partner guides are listed first. Classic loaders from langchain-community and other community packages follow. For the full download-sorted catalog, see All document loaders.

Document LoaderDescriptionPackage/API
UnstructuredUses Unstructured's open source library to load PDFsPackage
Upstage Document Parse LoaderLoad PDF files using UpstageDocumentParseLoaderPackage
DoclingLoad PDF files using DoclingPackage
PyPDFLoaderLoad PDF files with pypdf (langchain-community)Community
PyMuPDFLoaderLoad PDF files with PyMuPDF (langchain-community)Community
PDFMinerLoaderLoad PDF files with PDFMiner (langchain-community)Community
PDFPlumberLoaderLoad PDF files with pdfplumber (langchain-community)Community
MinerULoad PDF and other documents using MinerUPackage
UnDatasIOLoad PDF files using UnDatasIOPackage
OpenDataLoader PDFLoad PDF files using OpenDataLoader PDFPackage
CVFileLoaderLoad .cv PDF/A-3u files with embedded Markdown, HTML, and JSON Resume payloadsPackage
pdfmuseLoad PDF and DOCX files deterministically, with exact coordinates, tables and per-block section metadata for RAGPackage
oxidize-pdfLoad PDF files using a Rust engine with element-disjoint RAG chunkingPackage
pdf-inspectorLoad PDF files using pdf-inspectorPackage

Cloud providers

The below document loaders allow you to load documents from your favorite cloud providers.

Document LoaderDescriptionPartner PackageAPI reference / Source
Azure Blob StorageLoad documents from Azure Blob Storage containers or individual blobs✅langchain-ai/langchain-azure
Google Cloud Storage DirectoryLoad documents from GCS bucket✅GCSDirectoryLoader
Google Cloud Storage FileLoad documents from GCS file object✅GCSFileLoader
Google DriveLoad documents from Google Drive (Google Docs only)✅GoogleDriveLoader

Common file types

The below document loaders allow you to load data from common data formats.

All document loaders