# Repository Briefing: Unstructured-IO/unstructured
> Source: https://repoforai.com/repo/Unstructured-IO/unstructured (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/Unstructured-IO/unstructured
- **Official Docs / Website**: https://www.unstructured.io/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: HTML
- **License**: Apache-2.0
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: 0.27.39 (2026-12-02) — https://github.com/Unstructured-IO/unstructured/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 15,817 ★ total (+2 24h / +25 7d) · 1,416 forks
- **Topics**: `deep-learning`, `document-parsing`, `machine-learning`, `nlp`, `ocr`, `information-retrieval`, `data-pipelines`, `ml`, `preprocessing`, `pdf-to-text`, `natural-language-processing`, `pdf`
- **When to Use**: Best for: Teams that need self-hosted parsing for mixed PDF, Office, HTML, email, or scanned documents and already have a downstream indexing pipeline. Skip if: You need a turnkey retrieval database or hosted parsing endpoint, or a dedicated extractor already handles your text-native PDF corpus.

## Overview
```text
### Architecture & Core Mechanics
Unstructured is a Python document ETL library at the front of a RAG stack, not a database. The `unstructured.partition.auto.partition` entry point detects the input type and dispatches it to a format-specific parser. Callers can also import a parser directly, such as `unstructured.partition.pdf.partition_pdf` or `unstructured.partition.text.partition_text`. Both paths return structured document elements; the calling application decides how to chunk, embed, and index them.

The modular boundary is the format-specific partitioner, with optional dependencies selected through Python extras and native tools for particular jobs. The container includes libmagic for type detection, Poppler for PDF processing, Tesseract for OCR, and LibreOffice for Office conversions. Batch ingestion and connectors are a separate integration concern: `unstructured-ingest` is the companion project for batch processing, while this library can run inside an existing worker without taking ownership of storage or retrieval.

### Key Capabilities & Differentiators
The base Python install covers plain text, HTML, XML, JSON, and email. Add extras for formats such as DOCX and PPTX, or install `unstructured[all-docs]` for broad format coverage. PDF and image processing can use OCR, with Tesseract language data needed for the languages you intend to recognize. Preserve the element list rather than flattening it early if downstream chunking depends on document structure.

For PDFs, treat `fast` and `hi_res` as different processing paths, not interchangeable settings. Start by evaluating `fast` on documents that already have a text layer, and test `hi_res` where layout fidelity justifies the extra work. Release 0.27.37 fixed a case where vector-heavy PDFs returned no elements on the `fast` path; 0.27.38 made empty CSV and TSV inputs produce no elements. Validate scanned pages, layout-heavy pages, and legitimately empty results separately rather than using nonempty output as the sole ingestion check.

### Trade-offs & Limitations
Use a dedicated PDF-to-text tool when nearly all inputs have a usable text layer and flattened output is enough. Unstructured earns its additional setup when mixed formats would otherwise require separate parsers and custom normalization. That flexibility comes with more dependencies and uneven job costs: track peak worker memory and throughput by page count, strategy, and concurrency, rather than sizing workers from an average document.

Apache-2.0 allows local commercial integration, but operators still own dependency maintenance and extraction quality checks. The hosted Transform v2 API is a different option when table quality is a priority and sending documents to a hosted service is acceptable. Published OSS and hosted benchmark figures use different evaluation sets, so they are not a controlled head-to-head comparison. Score both on the same representative pages before trading local control for hosted processing.

### Hardware & Deployment Guide
Install with PyPI on Python 3.11–3.14, or run the published Docker image at `downloads.unstructured.io/unstructured-io/unstructured` on x86_64 or Apple silicon. The supplied Dockerfile uses Python 3.12 on Wolfi and includes native parsing tools and Tesseract language data. The container quick start opens a shell to run the Python library; plan your own worker or service wrapper if you need a managed endpoint. Pin a concrete image version for repeatable deployments rather than relying on `latest`.

Self-hosting does not automatically make the runtime offline. Before import, set `DO_NOT_TRACK` or `SCARF_NO_ANALYTICS` to a nonblank value to disable both the default import ping and per-partition telemetry. Stage required model and OCR assets and test the actual workflow with outbound access blocked. Release 0.27.38 avoids rendering a PDF separately for each `hi_res` stage, and 0.27.39 adds support for disabling runtime spaCy model downloads. Neither change removes the need to test the selected parsing paths in the intended environment.
```

## Key Capabilities
```text
- Dispatch: `unstructured.partition.auto.partition` detects file types and routes inputs to format-specific parsers.
- Output contract: Structured elements give downstream chunking a way to retain boundaries that a flat text export loses.
- PDF execution: `fast` and `hi_res` support different extraction needs; release 0.27.38 reuses a single PDF render across `hi_res` stages.
- Dependency scope: Format-specific Python extras limit installation scope; Poppler, Tesseract, and LibreOffice cover distinct native processing needs.
- Container delivery: Published Docker images cover x86_64 and Apple silicon, and the Wolfi-based build installs Tesseract language data.
- Network controls: Either `DO_NOT_TRACK` or `SCARF_NO_ANALYTICS` disables both startup and partition telemetry when set to a nonblank value.
```

## Quick Start / Clone
```bash
docker pull downloads.unstructured.io/unstructured-io/unstructured:latest
```
