UDI¶
Use IBM watsonx.data integration and IBM Docling to ingest, cleanse, transform, and enrich unstructured content for RAG and AI. Use IBM Docling when complex documents need high-quality conversion into structured, AI-ready representations.
Product mapping
IBM watsonx.data integration, IBM Docling — visual, drag-and-drop document pipeline (UDI) plus managed deep learning document intelligence (Docling).
GitHub Repository
The complete source code and examples are available in the GitHub repository:
Included Assets¶
| Asset | Description |
|---|---|
| udi-ingestion-opensearch | End-to-end document ingestion — IBM COS → UDI document processing → watsonx.ai embeddings → OpenSearch |
Bob Modes¶
| Mode | Description |
|---|---|
| Data Ingestion | IBM Bob mode for UDI document ingestion pipeline design, COS source configuration, chunking strategy, and OpenSearch indexing |
Bob Skills¶
| Skill | Description |
|---|---|
| data-ingestion-unstructured | IBM Docling document parsing, UDI pipeline configuration, multi-format chunking (PDF, DOCX, HTML, images), metadata extraction, and Python automation scripts |
| udi-opensearch | IBM UDI + OpenSearch integration, document search pipeline setup, and OpenSearch index provisioning for UDI output into IBM watsonx.data |
| data-ingestion-structured | Structured ingestion companion guidance for IBM DataStage connector config, CDC pipeline design, and schema mapping |
Installing skills and modes
Download the .zip files and copy the folders to ~/.bob/skills or ~/.bob/modes (global) or <project>/.bob/skills / <project>/.bob/modes (project-level). See the Data Skills and Modes page for full installation instructions.
Quick Start¶
cd data/pipelines/udi/assets/udi-ingestion-opensearch
cp scripts/.env.example scripts/.env
# Populate IBM Cloud, project, COS, and target credentials described in the asset README
pip install -r requirements.txt
python scripts/setup.py
python scripts/ingest.py
Read assets/udi-ingestion-opensearch/README.md first — it documents required IBM services, COS HMAC credentials, input folder layout, generated resources, and troubleshooting.
Model Default¶
Verify before production
The default embedding model is ibm/granite-embedding-278m-multilingual. Verify current support and dimensions before indexing:
Why It Matters¶
Enterprise knowledge is locked in PDFs, presentations, scanned documents, contracts and reports. Before any of it can be retrieved or used by AI, it must be extracted, cleaned, chunked and indexed correctly. Poor document preparation is the leading cause of poor RAG quality — UDI and Docling address this directly.
Business Value¶
Key outcomes
| Outcome | What It Means |
|---|---|
| Turn enterprise documents into AI-ready data | Structure PDFs, images, presentations and complex content for indexing and retrieval |
| Improve RAG retrieval quality | Better extraction, layout preservation, chunking and enrichment improve what gets indexed |
| Automate repeatable document pipelines | Schedule flows that detect and process changed documents without manual rebuilds |
| Reduce sensitive-data risk | Use processing steps such as filtering and PII redaction where applicable |
| Support multiple vector targets | Route prepared content into OpenSearch, Milvus or Astra DB depending on deployment |
When to Use¶
Use UDI when:
- Raw documents need extraction, cleansing, chunking or enrichment before retrieval.
- You need a visual, repeatable pipeline for continuously updated document sources.
- RAG quality is limited by poor PDF parsing, tables, reading order or document structure.
- You need to preserve source permissions/ACL context where supported.
Use Docling when:
- Document structure itself is a major problem — complex PDFs, tables, presentations or scanned/visual layouts.
- The document must become structured output (Markdown, JSON, HTML) for downstream AI consumption.
Reference Flow¶
flowchart LR
S["SharePoint / S3 / Box / FileNet / files"] --> U["Unstructured Data Integration"]
U --> D["Docling<br/>extraction + structure"]
D --> P["Cleanse / redact / classify / chunk"]
P --> E["Embeddings / entities / document sets"]
E --> V["OpenSearch / Astra DB / Milvus"]
V --> R["RAG / Search / Agents"]
UDI Capabilities¶
IBM documentation describes UDI as a drag-and-drop flow experience with pre-built modules for document ingestion and transformations such as extraction, filtering and PII redaction. Flows can be scheduled so that only changed documents are processed, reducing unnecessary reprocessing.
Docling Capabilities¶
Docling for IBM watsonx converts complex unstructured documents into structured outputs such as Markdown, JSON and HTML. It is designed for:
- Document conversion and information extraction
- Data preparation and document understanding
- RAG, enterprise search and agent workflows
- Preserving tables, reading order and document layout structure
What to Demonstrate¶
- Load a representative complex PDF or presentation.
- Show the structured output with preserved tables and reading order.
- Build a UDI flow that cleans, chunks and enriches the content.
- Store the result in a supported vector target.
- Run a retrieval question against the processed content.
- Compare the result with a naive text extraction if possible.
Design Considerations¶
Document pipelines need care
- Use document-aware chunking rather than fixed character splits for complex documents.
- Keep source metadata — document name, page, section, permissions — alongside chunks.
- Separate extraction errors from embedding/retrieval errors during troubleshooting.
- Treat document updates and deletions as first-class lifecycle events.
- Define evaluation documents that contain tables, images and multi-column layouts — not only simple text PDFs.
IBM Products Used¶
| Product | Role |
|---|---|
| IBM watsonx.data integration — UDI | Visual drag-and-drop pipeline for document ingestion, transformation, chunking and enrichment |
| Docling for IBM watsonx | Advanced document conversion — complex PDFs, tables, scanned layouts → structured AI-ready output |