{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "unstructured-io-unstructured--partition-mixed-documents-for-rag-with-unstructured",
 "repo": "Unstructured-IO/unstructured",
 "repo_url": "https://github.com/Unstructured-IO/unstructured",
 "repo_slug": "unstructured-io-unstructured",
 "title": "Turn PDFs, Word files and emails into clean text elements",
 "page_title": "How to turn PDFs, Word files and emails into clean text elements with Unstructured",
 "summary": "Run partition on any supported file and get a list of elements ready for chunking and embedding.",
 "who": "An engineer building a RAG index over a folder of mixed file types.",
 "problem": "Every format needs its own parser, and layouts break naive text extraction.",
 "outcome": "One element list per document, with text you can print, chunk or store.",
 "steps": [
  "Install everything with `pip install \"unstructured[all-docs]\"`, or just the formats you need with `pip install \"unstructured[docx,pptx]\"`",
  "Install system dependencies such as poppler-utils and tesseract-ocr for PDFs and images",
  "Call partition(filename=...) from Unstructured.partition.auto so the file type is detected for you",
  "Print the result with `print(\"\\n\\n\".join([str(el) for el in elements]))` and pass the elements to your chunker"
 ],
 "agent_prompt": "Using Unstructured-IO/unstructured, install `unstructured[all-docs]`, partition every file in <my documents folder> with partition from unstructured.partition.auto, and report the element count per file and any file that failed.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Beginner",
 "time": "45 minutes",
 "basis": "readme",
 "caveat": "The README notes the hosted Transform API scores higher on tables than the open-source library.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "html",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/unstructured-io-unstructured/partition-mixed-documents-for-rag-with-unstructured/",
 "md": "https://dedupedai.com/use-cases/unstructured-io-unstructured/partition-mixed-documents-for-rag-with-unstructured/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/unstructured-io-unstructured--partition-mixed-documents-for-rag-with-unstructured.json",
 "api_version": "v1"
}
