langchain-unstructured
An integration package connecting Unstructured and LangChain
Decision gist · record as of 2026-08-14
Yes. Low install friction, active maintenance, permissive MIT license, and no known vulnerabilities make this a straightforward choice for LangChain users needing document loading and partitioning. Install it if you are building RAG systems or document-processing pipelines with LangChain and want Unstructured's file handling without custom integration code.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires UNSTRUCTURED_API_KEY environment variable or explicit api_key parameter for API-based partitioning; local partitioning may require additional unstructured library installation.
- Low friction install with just two runtime dependencies.
- Actively maintained as of August 2026, with recent commits and no archived status.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
last release 2025-12-27 (230 days) · last repo commit 2026-08-10 · 22 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 297,077 downloads/mo, #7,890 on PyPI
Alternatives
Verify before relying
pip install langchain-unstructured unstructured-client
export UNSTRUCTURED_API_KEY="your-api-key"
from langchain_unstructured import UnstructuredLoader
loader = UnstructuredLoader(
file_path=["example.pdf"],
api_key="your-api-key",
partition_via_api=True
)
docs = loader.load()
print(docs[0].page_content)- Whether local partitioning mode (without API) requires separate unstructured package installation beyond what is listed as runtime deps.
- Performance characteristics and latency when processing large files or batches via the Unstructured API.
- Supported file formats beyond PDF mentioned in the excerpt.
What it is and what it does
langchain-unstructured is a LangChain integration that bridges document loading with Unstructured's file partitioning capabilities. It wraps the UnstructuredLoader class to extract and chunk content from files—PDFs, documents, and other formats—either by calling the hosted Unstructured API (with an API key) or by using local partitioning. The loader automatically detects file types and supports post-processing parameters like chunking strategies (e.g., "by_title") to segment documents into text chunks suitable for retrieval-augmented generation (RAG) and other LLM workflows.
The package depends on langchain-core for the LangChain framework integration and unstructured-client for API communication. It requires Python 3.10 or later and is actively maintained. Users configure it by setting an environment variable or passing credentials directly, then instantiate the loader with file paths and optional partitioning parameters, and call load() to retrieve a list of document objects with content and metadata.
Use it for
- Extract and chunk PDF documents for RAG pipelines in LangChain applications.
- Batch load multiple document files with automatic format detection and structured partitioning.
- Preprocess documents with configurable chunking strategies before feeding them to language models.
- Integrate document parsing into LangChain workflows without writing custom file-handling code.
- Process documents either via a remote API or locally, depending on infrastructure and latency requirements.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Low install friction, active maintenance, permissive MIT license, and no known vulnerabilities make this a straightforward choice for LangChain users needing document loading and partitioning. Install it if you are building RAG systems or document-processing pipelines with LangChain and want Unstructured's file handling without custom integration code.
Install
langchain-unstructured on PyPI
Before you install
Low friction install with just two runtime dependencies. Actively maintained as of August 2026, with recent commits and no archived status.
Requires UNSTRUCTURED_API_KEY environment variable or explicit api_key parameter for API-based partitioning; local partitioning may require additional unstructured library installation.
License in practice
MIT license permits commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install langchain-unstructured unstructured-client
export UNSTRUCTURED_API_KEY="your-api-key"
from langchain_unstructured import UnstructuredLoader
loader = UnstructuredLoader(
file_path=["example.pdf"],
api_key="your-api-key",
partition_via_api=True
)
docs = loader.load()
print(docs[0].page_content)
Verify before relying
- Whether local partitioning mode (without API) requires separate unstructured package installation beyond what is listed as runtime deps.
- Performance characteristics and latency when processing large files or batches via the Unstructured API.
- Supported file formats beyond PDF mentioned in the excerpt.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0.0,>=3.10.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageslangchain-coreunstructured-client |
| Maintenance | Actively maintained 230 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 297,077 / month, #7,890 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12 |
Evidence: langchain_unstructured-1.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “unstructured file parsing”
- langchain-unstructuredIntegrates LangChain with Unstructured to partition and load…
- unstructuredIngests and pre-processes unstructured documents (PDFs, HTML, Word,…
- unstructured-clientHTTP client SDK for the Unstructured Platform API that processes…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also langchain-docling · unstructured-ingest · unstructured · langchain-text-splitters · unstructured-client · embedchain · langchain-oracledb · langchain-chroma · langchain-cohere · langchain-qdrant