Zipstack/unstract

★ 7,245⑂ 718

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

About Zipstack/unstract

Zipstack/unstract is an open-source project on GitHub, mainly written in Python. LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows It currently holds 7,245 stars and 718 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Prompt Engineering board.

GitHub Repository Details

Repository Zipstack/unstract · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Unstract

Turn Unstructured Documents into Structured Data

Documentation | Enterprise

https://github.com/Zipstack/unstract/blob/HEAD/License https://github.com/Zipstack/unstract/blob/HEAD/Tutorials https://github.com/Zipstack/unstract/blob/HEAD/Uptime Status https://github.com/Zipstack/unstract/blob/HEAD/Docker Pulls https://github.com/Zipstack/unstract/blob/HEAD/Ask DeepWiki https://github.com/Zipstack/unstract/blob/HEAD/CLA assistant

https://github.com/Zipstack/unstract/blob/HEAD/Python Version from PEP 621 TOML https://github.com/Zipstack/unstract/blob/HEAD/uv https://github.com/Zipstack/unstract/blob/HEAD/Vite https://github.com/Zipstack/unstract/blob/HEAD/Bun https://github.com/Zipstack/unstract/blob/HEAD/Biome

https://github.com/Zipstack/unstract/blob/HEAD/pre-commit.ci status https://github.com/Zipstack/unstract/blob/HEAD/Quality Gate Status https://github.com/Zipstack/unstract/blob/HEAD/Code Smells https://github.com/Zipstack/unstract/blob/HEAD/Duplicated Lines (%)

What is Unstract?

Unstract uses LLMs to extract structured JSON from documents — PDFs, images, scans, you name it. Define what you want to extract using natural language prompts, and deploy as an API or ETL pipeline.

Built for teams in finance, insurance, healthcare, KYC/compliance, and much more.

Current State vs. Unstract

| Task | Without Unstract | With Unstract | |------|------------------|---------------| | Schema definition | Write regex, build templates per vendor | Write a prompt once, handles variations | | New document type | Days of development | Minutes in Prompt Studio | | LLM integration | Build your own pipeline | Plug in any provider (OpenAI, Anthropic, Bedrock, Ollama) | | Deployment | Custom infrastructure | ./run-platform.sh or managed cloud | | Output | Unstructured text blobs | Clean JSON, ready for your database |

⭐ If Unstract helps you, star this repo!
> Star Unstract

✨ Key Features

Prompt Studio — Define document extraction schemas with natural language. Docs →

Prompt Studio

API Deployment — Send a document over REST API, get JSON back. Docs →

API Deployment

ETL Pipeline — Pull documents from a folder, process them, load to your warehouse. Docs →

MCP Server — Connect to AI agents (Claude, etc.) via Model Context Protocol. Docs →

n8n Node — Drop into existing automation workflows. Docs →

🚀 Quickstart (~5 mins)

System Requirements & Prerequisites

Run Locally

# Clone and start
git clone https://github.com/Zipstack/unstract.git
cd unstract
./run-platform.sh

That's it!

📦 Other Deployment Options

Docker Compose

# Pull and run entire Unstract platform with default env config.
./run-platform.sh

Pull and run docker containers with a specific version tag.

./run-platform.sh -v v0.1.0

Upgrade existing Unstract platform setup by pulling the latest available version.

./run-platform.sh -u

Upgrade existing Unstract platform setup by pulling a specific version.

./run-platform.sh -u -v v0.2.0

Build docker images locally as a specific version tag.

./run-platform.sh -b -v v0.1.0

Build docker images locally from working branch as current version tag.

./run-platform.sh -b -v current

Display the help information.

./run-platform.sh -h

Only do setup of environment files.

./run-platform.sh -e

Only do docker images pull with a specific version tag.

./run-platform.sh -p -v v0.1.0

Only do docker images pull by building locally with a specific version tag.

./run-platform.sh -p -b -v v0.1.0

Upgrade existing Unstract platform setup with docker images built locally from working branch as current version tag.

./run-platform.sh -u -b -v current

Pull and run docker containers in detached mode.

./run-platform.sh -d -v v0.1.0

🔐 Backup Encryption Key

[!WARNING]
This key encrypts adapter credentials — losing it makes existing adapters inaccessible!

Copy the value of ENCRYPTION_KEY from backend/.env or platform-service/.env to a secure location.

🏗️ Unstract Architecture

┌────────────────────────────────────────────────────────────┐
│                          Unstract                          │
├─────────────┬─────────────┬─────────────┬──────────────────┤
│  Frontend   │   Backend   │   Worker    │ Platform Service │
│  (React)    │  (Django)   │  (Celery)   │   (FastAPI)      │
├─────────────┴─────────────┴─────────────┴──────────────────┤
│                      Cache (Redis)                         │
├────────────────────────────────────────────────────────────┤
│                  Message Queue (RabbitMQ)                  │
├────────────────────────────────────────────────────────────┤
│                   Database (PostgreSQL)                    │
├────────────────────────────────────────────────────────────┤
│  LLM Adapters    │  Vector DBs    │  Text Extractors       │
│  (OpenAI, etc.)  │ (Qdrant, etc.) │  (LLMWhisperer)        │
└────────────────────────────────────────────────────────────┘

Also see architecture.

📄 Document File Formats

| Category | Formats | |----------|---------| | Documents | PDF, DOCX, DOC, ODT, TXT, CSV, JSON | | Spreadsheets | XLSX, XLS, ODS | | Presentations | PPTX, PPT, ODP | | Images | PNG, JPG, JPEG, TIFF, BMP, GIF, WEBP |

🔌 Connectors & Adapters

LLM Providers

| Provider | Status | Provider | Status | |----------|--------|----------|--------| | OpenAI | ✅ | Azure OpenAI | ✅ | | OpenAI Compatible | ✅ | Anthropic Claude | ✅ | | AWS Bedrock | ✅ | Google Gemini | ✅ | | Ollama (local) | ✅ | Mistral AI | ✅ | | Anyscale | ✅ | | |

Vector Databases

| Provider | Status | Provider | Status | |----------|--------|----------|--------| | Qdrant | ✅ | Pinecone | ✅ | | Weaviate | ✅ | PostgreSQL | ✅ | | Milvus | ✅ | | |

Text Extractors

| Provider | Status | |----------|--------| | LLMWhisperer | ✅ | | Unstructured.io | ✅ | | LlamaIndex Parse | ✅ |

ETL Sources & Destinations

Sources: AWS S3, MinIO, Google Cloud Storage, Azure Blob, Google Drive, Dropbox, SFTP

Destinations: Snowflake, Amazon Redshift, Google BigQuery, PostgreSQL, MySQL, MariaDB, SQL Server, Oracle

Full Connector List

🛠️ Development

Change Default Credentials

Follow these steps to change the default username and password.

Local Development

# Install pre-commit hooks
./dev-env-cli.sh -p

Run pre-commit checks

./dev-env-cli.sh -r

Local Development Guide

🏢 Use Cases by Industry

Finance & Banking → | Insurance → | Healthcare → | Income Tax →

☁️ Cloud & Enterprise

For teams that need managed infrastructure, advanced accuracy features, or compliance certifications.

https://github.com/Zipstack/unstract/blob/HEAD/Book a Demo

📚 Cookbooks

🤝 Contributing

We welcome contributions! The easiest way to start:

1. Pick an issue tagged good first issue 2. Submit a PR

Report Bug → | Request Feature →

👋 Community

Join the LLM-powered document automation community:

Blog LinkedIn Slack X

📊 A Note on Analytics

Unstract integrates Posthog to track minimal usage analytics. Disable by setting REACT_APP_ENABLE_POSTHOG=false in the frontend's .env file.

📜 License

Unstract is released under the AGPL-3.0 License.

---

Built with ❤️ by Zipstack

Website · Documentation · Pricing

GitHub Stars & Activity

7,245Stars
718Forks
0Open issues
PythonLanguage

GitHub Popularity

GitHub stars7,245
Forks718
Open issues0
Primary languagePython
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

headroomlabs-ai / headroom

Python★ 73,186⑂ 5,631
2

blader / humanizer

Python★ 50,467⑂ 4,061
3

Imbad0202 / academic-research-skills

Python★ 48,823⑂ 3,789
4

mlflow / mlflow

Python★ 28,051⑂ 6,328
5

alirezarezvani / claude-skills

Python★ 26,168⑂ 3,686
6

comet-ml / opik

Python★ 22,157⑂ 1,809
7
8

tradecatlabs / vibe-coding-cn

Python★ 16,314⑂ 1,653

More AI Rankings