Who it is forA developer on a machine where installing system packages is painful.
The problemNative dependencies for PDFs, images and Office files are hard to install consistently.
The outcomeA running container with a Python shell where the partition functions work.
What you need first
- Python with pip; `pip install "unstructured[all-docs]"` for every document type
- System packages as needed: libmagic-dev, poppler-utils, tesseract-ocr and libreoffice
- Or Docker, to use the prebuilt image instead of installing dependencies
Steps
- Pull the image with
docker pull downloads.unstructured.io/unstructured-io/unstructured:latest - Create the container with
docker run -dt --name unstructured downloads.unstructured.io/unstructured-io/unstructured:latest - Open a shell with
docker exec -it unstructured bashand start python3 - Try partition_pdf on example-docs/layout-parser-paper-fast.pdf and partition_text on example-docs/fake-text.txt
Prompt for your agent
Using Unstructured-IO/unstructured, start the Docker image with `docker run -dt --name unstructured downloads.unstructured.io/unstructured-io/unstructured:latest`, copy <my PDF> in, run partition_pdf on it, and show the first ten elements.
Caveat. Images are multi-platform; pass `--platform linux/amd64` to docker pull if you need a specific architecture.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Unstructured-IO/unstructured and "Parse documents in Docker without local dependencies"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer