Unstructured is a Python library for parsing images and documents into structured elements. It targets PDFs, Office files, HTML, and more for LLM ingestion workflows.
Overview
The unstructured library ingests and preprocesses heterogeneous files so downstream language-model workflows receive cleaner structured output. Modular connectors and partition functions detect file types and route them to format-specific parsers, with optional extras for heavier document dependencies.
A central partition function auto-detects type and delegates parsing; file-specific partitioners remain available for finer control. Output is a list of element objects representing text and structure from the source. Supported inputs include PDFs, HTML, Word, and plain text, among others documented in the package.
Run from pip with optional extras per format, or pull official container images for isolated use. Docker images target multiple CPU architectures. System packages such as poppler, tesseract, and libreoffice may be required depending on which formats you parse.
The company also offers a separate hosted Transform API with higher accuracy benchmarks; the open-source library remains free. Use cases stated in the project focus on streamlining ETL before embedding, chunking, or retrieval pipelines rather than serving as a full managed platform on its own.
Key features
- Auto-detecting partition function
- PDF, Office, HTML, and image support
- Optional format-specific extras
- Official multi-arch Docker images
- PyPI install with dependency groups
- Element-oriented structured output
- Connectors for pipeline composition
- Local development container helper
Use cases
- LLM document preprocessing
- PDF and scan text extraction
- RAG ingestion pipelines
- Mixed-format batch parsing
- Containerized parsing jobs