|
| 1 | +--- |
| 2 | +description: | |
| 3 | + [Unstructured.io](https://unstructured.io) is a multi-format document parser that supports 65+ file types |
| 4 | + including emails (EML/MSG), legacy documents, presentations, spreadsheets, and more. This provider uses |
| 5 | + the Unstructured.io SaaS API for cloud-based document processing with advanced table and image detection. |
| 6 | +
|
| 7 | + ## Supported Formats |
| 8 | +
|
| 9 | + - **Documents**: PDF, DOC, DOCX, PPTX, XLSX, ODT, RTF, EPUB |
| 10 | + - **Email**: EML, MSG (unique capability) |
| 11 | + - **Web**: HTML, Markdown, XML, JSON |
| 12 | + - **Images**: PNG, JPG, TIFF (with OCR) |
| 13 | + - **Text**: TXT, CSV |
| 14 | + - **65+ formats total** — see [Unstructured format support](https://docs.unstructured.io/pipelines/supported-file-types) |
| 15 | +
|
| 16 | + ## Features |
| 17 | +
|
| 18 | + - **Multi-format support** — 65+ file types including email formats (EML/MSG) |
| 19 | + - **Cloud-based processing** — no local dependencies or system requirements |
| 20 | + - **Table detection** — extracts tables with structure preservation |
| 21 | + - **Image detection** — identifies and extracts image elements |
| 22 | + - **SOC2/HIPAA/GDPR certified** — suitable for regulated industries |
| 23 | +
|
| 24 | + ## Usage |
| 25 | +
|
| 26 | + Get an API key from [Unstructured.io](https://unstructured.io) (free tier available), then start OGX: |
| 27 | +
|
| 28 | + ```bash |
| 29 | + UNSTRUCTURED_API_KEY=your-api-key ogx stack run \ |
| 30 | + --providers "file_processors=remote::unstructured-api,files=inline::localfs,vector_io=inline::faiss,inference=inline::sentence-transformers,inference=remote::ollama" \ |
| 31 | + --port 8321 |
| 32 | + ``` |
| 33 | +
|
| 34 | + Or add it to a custom `run.yaml`: |
| 35 | +
|
| 36 | + ```yaml |
| 37 | + file_processors: |
| 38 | + - provider_id: unstructured |
| 39 | + provider_type: remote::unstructured-api |
| 40 | + config: |
| 41 | + api_key: ${env.UNSTRUCTURED_API_KEY} |
| 42 | + ``` |
| 43 | +
|
| 44 | + ## When to Use |
| 45 | +
|
| 46 | + - **Diverse formats**: Need to process emails, legacy documents, or 10+ different file types |
| 47 | + - **Managed service**: Want zero setup and no system dependencies |
| 48 | + - **Compliance**: Require SOC2/HIPAA/GDPR certified processing |
| 49 | + - **Email RAG**: Building customer support or communication archive applications |
| 50 | +
|
| 51 | + For faster processing with fewer formats, use `inline::docling` instead. |
| 52 | +
|
| 53 | + ## Performance |
| 54 | +
|
| 55 | + - Processing speed: ~1-2 seconds per page |
| 56 | + - Best for: Documents <100 pages |
| 57 | + - Cost: ~$0.01 per page (verify current pricing with Unstructured.io) |
| 58 | +
|
| 59 | + ## Documentation |
| 60 | +
|
| 61 | + See [Unstructured.io documentation](https://docs.unstructured.io) for API details and format support. |
| 62 | +sidebar_label: Remote - Unstructured-Api |
| 63 | +title: remote::unstructured-api |
| 64 | +--- |
| 65 | + |
| 66 | +# remote::unstructured-api |
| 67 | + |
| 68 | +## Description |
| 69 | + |
| 70 | + |
| 71 | +[Unstructured.io](https://unstructured.io) is a multi-format document parser that supports 65+ file types |
| 72 | +including emails (EML/MSG), legacy documents, presentations, spreadsheets, and more. This provider uses |
| 73 | +the Unstructured.io SaaS API for cloud-based document processing with advanced table and image detection. |
| 74 | + |
| 75 | +## Supported Formats |
| 76 | + |
| 77 | +- **Documents**: PDF, DOC, DOCX, PPTX, XLSX, ODT, RTF, EPUB |
| 78 | +- **Email**: EML, MSG (unique capability) |
| 79 | +- **Web**: HTML, Markdown, XML, JSON |
| 80 | +- **Images**: PNG, JPG, TIFF (with OCR) |
| 81 | +- **Text**: TXT, CSV |
| 82 | +- **65+ formats total** — see [Unstructured format support](https://docs.unstructured.io/pipelines/supported-file-types) |
| 83 | + |
| 84 | +## Features |
| 85 | + |
| 86 | +- **Multi-format support** — 65+ file types including email formats (EML/MSG) |
| 87 | +- **Cloud-based processing** — no local dependencies or system requirements |
| 88 | +- **Table detection** — extracts tables with structure preservation |
| 89 | +- **Image detection** — identifies and extracts image elements |
| 90 | +- **SOC2/HIPAA/GDPR certified** — suitable for regulated industries |
| 91 | + |
| 92 | +## Usage |
| 93 | + |
| 94 | +Get an API key from [Unstructured.io](https://unstructured.io) (free tier available), then start OGX: |
| 95 | + |
| 96 | +```bash |
| 97 | +UNSTRUCTURED_API_KEY=your-api-key ogx stack run \ |
| 98 | + --providers "file_processors=remote::unstructured-api,files=inline::localfs,vector_io=inline::faiss,inference=inline::sentence-transformers,inference=remote::ollama" \ |
| 99 | + --port 8321 |
| 100 | +``` |
| 101 | + |
| 102 | +Or add it to a custom `run.yaml`: |
| 103 | + |
| 104 | +```yaml |
| 105 | +file_processors: |
| 106 | + - provider_id: unstructured |
| 107 | + provider_type: remote::unstructured-api |
| 108 | + config: |
| 109 | + api_key: ${env.UNSTRUCTURED_API_KEY} |
| 110 | +``` |
| 111 | +
|
| 112 | +## When to Use |
| 113 | +
|
| 114 | +- **Diverse formats**: Need to process emails, legacy documents, or 10+ different file types |
| 115 | +- **Managed service**: Want zero setup and no system dependencies |
| 116 | +- **Compliance**: Require SOC2/HIPAA/GDPR certified processing |
| 117 | +- **Email RAG**: Building customer support or communication archive applications |
| 118 | +
|
| 119 | +For faster processing with fewer formats, use `inline::docling` instead. |
| 120 | + |
| 121 | +## Performance |
| 122 | + |
| 123 | +- Processing speed: ~1-2 seconds per page |
| 124 | +- Best for: Documents <100 pages |
| 125 | +- Cost: ~$0.01 per page (verify current pricing with Unstructured.io) |
| 126 | + |
| 127 | +## Documentation |
| 128 | + |
| 129 | +See [Unstructured.io documentation](https://docs.unstructured.io) for API details and format support. |
| 130 | + |
| 131 | + |
| 132 | +## Configuration |
| 133 | + |
| 134 | +| Field | Type | Required | Default | Description | |
| 135 | +|-------|------|----------|---------|-------------| |
| 136 | +| `api_key` | `SecretStr` | No | | API key for authenticating with Unstructured.io SaaS API (get one from https://unstructured.io) | |
| 137 | +| `default_chunk_size_tokens` | `int` | No | 800 | Default chunk size in tokens when chunking_strategy type is 'auto' | |
| 138 | + |
| 139 | +## Sample Configuration |
| 140 | + |
| 141 | +```yaml |
| 142 | +api_key: ${env.UNSTRUCTURED_API_KEY} |
| 143 | +``` |
0 commit comments