<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Prasad Madugundu on Medium]]></title>
        <description><![CDATA[Stories by Prasad Madugundu on Medium]]></description>
        <link>https://medium.com/@vprasad.madu?source=rss-1e017a133d35------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oG2WHenN-p_n-49vepSHfQ.jpeg</url>
            <title>Stories by Prasad Madugundu on Medium</title>
            <link>https://medium.com/@vprasad.madu?source=rss-1e017a133d35------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:16:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vprasad.madu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ingest Operators: Connecting Any Data Source to Your Pipeline]]></title>
            <link>https://medium.com/@vprasad.madu/ingest-operators-the-entry-point-of-every-pipeline-89f891566ec4?source=rss-1e017a133d35------2</link>
            <guid isPermaLink="false">https://medium.com/p/89f891566ec4</guid>
            <category><![CDATA[unstructured-data]]></category>
            <category><![CDATA[docling]]></category>
            <category><![CDATA[agentic-rag]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <dc:creator><![CDATA[Prasad Madugundu]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 06:00:14 GMT</pubDate>
            <atom:updated>2026-09-08T07:22:11.022Z</atom:updated>
            <content:encoded><![CDATA[<p>By the <a href="https://github.com/IBM/docling-pipelines">Docling Pipelines</a> team · IBM Open Source</p><p>Learn how the ingest_source operator ingests documents from local filesystems, cloud storage, Microsoft 365, Google Drive, Box, and custom sources into a unified processing pipeline, and which real-world problems it helps you solve.</p><p>Document pipelines must be able to reach content wherever it lives — local disks, object storage, enterprise content platforms, or entirely custom sources. In docling-pipelines, the <strong>ingest operator</strong> is the component that bridges that gap. It provides a unified way to discover and register documents from any supported data source before passing them downstream for extraction, enrichment, and storage.</p><p>Out of the box, the ingest operator supports seven provider types: local filesystem, Amazon S3 (and S3-compatible stores such as IBM Cloud Object Storage and MinIO), Microsoft SharePoint, OneDrive, Google Drive, Box, and a custom provider that accepts any LangChain BaseLoader-compatible class. All providers expose the same configuration shape and produce the same PyArrow output schema, so the rest of your pipeline — text extraction, chunking, embeddings, vector storage — is completely source-agnostic.</p><p>This post walks through what the ingest operator does, how to configure it for each supported source, why it is designed the way it is, and which real-world use cases it unlocks. If you are new to docling-pipelines and want a high-level introduction first, see <a href="https://medium.com/@adityars_28497/build-modular-document-processing-flows-with-docling-pipelines-and-ibm-bob-8a215ed702f4">Build Modular Document Processing Flows with Docling Pipelines and IBM Bob</a>.</p><h3>What is the Ingest Operator?</h3><p>The ingest_source operator is the mandatory root node of every docling-pipelines flow. Its single responsibility is <strong>document discovery and metadata registration</strong>: find all files that match your filters, record their identifiers and paths, and emit a structured PyArrow table for the next operator to consume.</p><p><strong>Design insight:</strong> The ingest operator intentionally does <em>not</em> load file binary content into memory. It produces a lightweight metadata table — one row per document — that contains the path or URL needed to fetch the binary later. This keeps memory usage low even when dealing with thousands of large PDFs, and defers the expensive I/O to the extract operator which knows how to handle each format.</p><h3>Where it sits in the pipeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*q_NDJbhL4aOjHrth6OsdrA.png" /></figure><p>The ingest operator is always first. Every other operator in the flow receives its output directly or indirectly through the DAG edges defined by depends_on.</p><h3>What the Operator Produces</h3><p>The output of every ingest operator run is a <strong>PyArrow table</strong> with a fixed schema. Each row represents one discovered document:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*NCDDO4Y54QxL-cJ_yifGLw.png" /></figure><h3>Supported Providers</h3><p>The provider field in the operator config selects the data source adapter. Seven providers are available out of the box:</p><ol><li>File System: Local or mounted directories. Supports recursive traversal, glob excludes, and symlink control.</li><li>S3: Amazon S3, IBM Cloud Object Storage, MinIO, and any S3-compatible endpoint. Supports prefix-level or single-file ingestion.</li><li>Sharepoint: Microsoft SharePoint document libraries. Uses Azure AD client credentials flow.</li><li>One Drive: Microsoft One Drive personal or business drives. Same Azure AD auth as SharePoint.</li><li>Google Drive: Google Drive folders with recursive sub-folder support. Uses OAuth2 service account.</li><li>Box Driver: Box enterprise folders. Uses Box JWT app authentication.</li><li>Custom: Bring your own loader. Provide any class implementing LangChain’s BaseLoader interface.</li></ol><h3>Configuration Reference</h3><p>All providers share a common top-level config shape. Provider-specific settings live inside connection_params and credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*50cpW9jmTd7qaZk9inSSng.png" /></figure><h4>Supported file types</h4><ul><li>PDF, DOCX, PPTX, XLSX, Markdown, Plain Text, HTML, PNG / JPG / TIFF / BMP / WebP, WAV / MP3 / MP4 (with ASR)</li></ul><h3>Flow Examples</h3><h4>1. Local filesystem — quickstart</h4><p>The simplest possible configuration. No credentials needed; just point to a directory.</p><pre>{<br>  &quot;flow_name&quot;: &quot;local-quickstart&quot;,<br>  &quot;global_config&quot;: {<br>    &quot;doc_column&quot;: &quot;content&quot;,<br>    &quot;storage&quot;: &quot;in-memory&quot;,<br>    &quot;execute_type&quot;: &quot;local&quot;<br>  },<br>  &quot;flow&quot;: [<br>    {<br>      &quot;name&quot;: &quot;ingest&quot;,<br>      &quot;type&quot;: &quot;ingest_source&quot;,<br>      &quot;config&quot;: {<br>        &quot;provider&quot;: &quot;filesystem&quot;,<br>        &quot;connection_params&quot;: {<br>          &quot;paths&quot;: [&quot;./documents&quot;],<br>          &quot;recursive&quot;: true<br>        },<br>        &quot;include_filter&quot;: &quot;pdf,docx,txt&quot;<br>      }<br>    },<br>    {<br>      &quot;name&quot;: &quot;extract&quot;,<br>      &quot;type&quot;: &quot;extract_operator&quot;,<br>      &quot;depends_on&quot;: [&quot;ingest&quot;],<br>      &quot;config&quot;: {<br>        &quot;text_extraction&quot;: { &quot;provider&quot;: &quot;docling_library&quot;, &quot;doc_column&quot;: &quot;content&quot; }<br>      }<br>    }<br>  ]<br>}</pre><h4>2. Amazon S3 — full RAG pipeline</h4><p>Ingest from S3, extract, chunk, embed, and write to OpenSearch. Credentials are read from environment variables.</p><pre>{<br>  &quot;name&quot;: &quot;ingest_s3&quot;,<br>  &quot;type&quot;: &quot;ingest_source&quot;,<br>  &quot;config&quot;: {<br>    &quot;provider&quot;: &quot;s3&quot;,<br>    &quot;connection_params&quot;: {<br>      &quot;bucket&quot;: &quot;${S3_BUCKET_NAME}&quot;,<br>      &quot;prefix&quot;: &quot;contracts/2024/&quot;,<br>      &quot;endpoint_url&quot;: &quot;${S3_ENDPOINT_URL}&quot;<br>    },<br>    &quot;credentials&quot;: {<br>      &quot;access_key&quot;: &quot;${S3_ACCESS_KEY}&quot;,<br>      &quot;secret_key&quot;: &quot;${S3_SECRET_ACCESS_KEY}&quot;<br>    },<br>    &quot;include_filter&quot;: &quot;pdf,docx&quot;,<br>    &quot;max_files&quot;: 500,<br>    &quot;force_ingest&quot;: false<br>  }<br>}</pre><h4>3. SharePoint document library</h4><pre>{<br>  &quot;name&quot;: &quot;ingest_sp&quot;,<br>  &quot;type&quot;: &quot;ingest_source&quot;,<br>  &quot;config&quot;: {<br>    &quot;provider&quot;: &quot;sharepoint&quot;,<br>    &quot;connection_params&quot;: {<br>      &quot;document_library_id&quot;: &quot;${SHAREPOINT_LIBRARY_ID}&quot;<br>    },<br>    &quot;credentials&quot;: {<br>      &quot;client_id&quot;: &quot;${AZURE_CLIENT_ID}&quot;,<br>      &quot;client_secret&quot;: &quot;${AZURE_CLIENT_SECRET}&quot;,<br>      &quot;tenant_id&quot;: &quot;${AZURE_TENANT_ID}&quot;<br>    },<br>    &quot;include_filter&quot;: &quot;pdf,docx,pptx&quot;<br>  }<br>}</pre><h4>4. Google Drive with recursive subfolder traversal</h4><pre>{<br>  &quot;name&quot;: &quot;ingest_gdrive&quot;,<br>  &quot;type&quot;: &quot;ingest_source&quot;,<br>  &quot;config&quot;: {<br>    &quot;provider&quot;: &quot;google_drive&quot;,<br>    &quot;connection_params&quot;: {<br>      &quot;folder_id&quot;: &quot;${GDRIVE_FOLDER_ID}&quot;,<br>      &quot;recursive&quot;: true<br>    },<br>    &quot;credentials&quot;: {<br>      &quot;credentials_json_path&quot;: &quot;${GOOGLE_CREDENTIALS_PATH}&quot;,<br>      &quot;token_path&quot;: &quot;${HOME}/.credentials/gdrive_token.json&quot;,<br>      &quot;scopes&quot;: [&quot;https://www.googleapis.com/auth/drive.readonly&quot;]<br>    },<br>    &quot;include_filter&quot;: &quot;pdf,docx&quot;<br>  }<br>}</pre><h4>5. Custom loader — bring your own source</h4><p>Any class implementing LangChain’s BaseLoader interface can be plugged in without changing the rest of the pipeline.</p><pre>{<br>  &quot;name&quot;: &quot;ingest_custom&quot;,<br>  &quot;type&quot;: &quot;ingest_source&quot;,<br>  &quot;config&quot;: {<br>    &quot;provider&quot;: &quot;custom&quot;,<br>    &quot;connection_params&quot;: {<br>      &quot;loader_class_path&quot;: &quot;my_org.loaders.ConfluenceLoader&quot;,<br>      &quot;space_key&quot;: &quot;ENG&quot;,<br>      &quot;base_url&quot;: &quot;https://wiki.example.com&quot;<br>    },<br>    &quot;credentials&quot;: {<br>      &quot;api_token&quot;: &quot;${CONFLUENCE_API_TOKEN}&quot;<br>    }<br>  }<br>}</pre><h3>Incremental Processing</h3><p>The ingest operator tracks which documents have been processed across runs using each document’s id (a hash of its source path) and modified_time. On subsequent runs, files that have not changed are silently skipped — they appear in the metadata as skipped_docs rather than being re-processed.</p><p>Set &quot;force_ingest&quot;: true to override this behaviour and re-process everything, which is useful when you have updated an operator in the pipeline and want to re-derive downstream outputs.</p><pre>{<br>  &quot;processed_docs&quot;: 48,<br>  &quot;skipped_docs_count&quot;: 52,<br>  &quot;skipped_docs&quot;: [<br>    { &quot;id&quot;: &quot;a3f9...&quot;, &quot;name&quot;: &quot;contracts/renewal_2023.pdf&quot;, &quot;reason&quot;: &quot;Already processed&quot; }<br>  ],<br>  &quot;failed_docs_count&quot;: 0,<br>  &quot;node_status&quot;: &quot;completed&quot;<br>}</pre><p><strong>Production tip:</strong> For scheduled pipelines that run against a growing document store (e.g. new contracts uploaded to S3 daily), leave force_ingest at its default false. Only the net-new and modified files will be processed each run, keeping execution time proportional to delta size rather than total corpus size.</p><h3>Why the Ingest Layer Matters</h3><p>A naive approach to document pipelines often couples data source logic directly to processing logic — the code that fetches from S3 also does text extraction, which also does chunking. This makes it hard to swap sources, test components in isolation, or add new data sources without touching extraction code.</p><p>The ingest operator enforces a clean boundary. By standardising on a PyArrow table output, every downstream operator — regardless of whether the files came from SharePoint, S3, or a Raspberry Pi’s filesystem — sees exactly the same shape of data. This means:</p><ul><li><strong>Source portability:</strong> change the provider without touching any downstream operator config.</li><li><strong>Testability:</strong> unit-test any downstream operator by constructing a mock PyArrow table — no cloud credentials needed.</li><li><strong>Memory efficiency:</strong> ingest produces lightweight metadata rows; binaries are loaded on demand.</li><li><strong>Incremental processing:</strong> the ingest layer is the only place that knows which files have already been seen — downstream operators remain stateless.</li><li><strong>Extensibility:</strong> adding a new source means writing a BaseLoader subclass, not modifying the pipeline framework.</li></ul><h3>Summary</h3><p>The ingest_source operator is the foundation on which every docling-pipelines flow is built. It handles seven data sources — from local filesystems to enterprise cloud storage — behind a single configuration key, produces a consistent PyArrow schema for downstream operators, and manages incremental state so that only new or changed documents flow through the pipeline on each run.</p><p>Its significance is less about what it does in isolation and more about what it enables: by cleanly separating <em>where documents come from</em> from <em>what is done with them</em>, it makes the rest of the pipeline portable, testable, and easy to extend. Any document source that can surface a file path and a modification timestamp can be plugged in — and everything downstream just works.</p><h3><strong>Further reading</strong></h3><ul><li>High-level introduction: <a href="https://medium.com/@adityars_28497/build-modular-document-processing-flows-with-docling-pipelines-and-ibm-bob-8a215ed702f4">Build Modular Document Processing Flows with Docling Pipelines and IBM Bob</a></li><li>Full parameter reference: <a href="https://github.com/IBM/docling-pipelines/blob/main/docs/reference/OPERATORS.md">docs/reference/OPERATORS.md</a></li><li>Provider setup guides: <a href="https://github.com/IBM/docling-pipelines/blob/main/docs/operators/ingest/ingest_source_readme.md">docs/operators/ingest/ingest_source_readme.md</a></li><li>Ready-to-run flows: <a href="https://github.com/IBM/docling-pipelines/tree/main/sample_flows">sample_flows/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=89f891566ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>