Red Hat turns Docling parsing into a distributed OpenShift AI pipeline
A new engineering session combines Docling, Ray Data and KubeRay for CPU parsing, GPU embeddings and RAG ingestion at document-collection scale.
Red Hat has published an engineering session that moves document ingestion for retrieval-augmented generation beyond the single-notebook demo. The design combines Docling for document parsing, Ray Data for distributed streaming execution and KubeRay for running and scaling Ray clusters on Red Hat OpenShift AI.
The production problem
The session starts from a familiar gap: a RAG demonstration can accept a few clean files, while a production knowledge base may contain tens of thousands of PDFs with tables, charts and multi-column layouts. Before an application can answer questions, those documents have to be parsed, transformed and embedded.
Red Hat’s proposed division of labor is explicit. Docling handles high-fidelity extraction from complex documents. Ray Data distributes the processing pipeline. OpenShift AI uses KubeRay to orchestrate the Ray workers and scale the cluster as demand changes.
One pipeline for CPU and GPU work
The architecture is intended to coordinate two different resource profiles. Document parsing is CPU-intensive, while embedding generation can use GPUs. Red Hat says the KubeRay-managed setup can scale from a small number of nodes to hundreds and coordinate both types of work in one pipeline.
The demonstration follows the full path: ingest raw documents, parse them across distributed Ray workers, generate embeddings and query the resulting data through a RAG application. The session covers both interactive “chat with my documents” use cases and batch processing for larger organizational knowledge bases.
That makes the design useful as a platform pattern, not just an application recipe. Teams can separate the parsing and embedding stages, assign each the appropriate compute, and let the Ray cluster provide parallel execution while OpenShift supplies the shared control plane.
What teams should try
The practical starting point is to reproduce the pipeline with a representative document set rather than a handful of ideal PDFs. Track parsing failures, throughput and the CPU-to-GPU handoff before increasing the Ray worker count. The session describes dynamic scale, but it does not publish benchmark results or cost figures, so teams still need to measure the pattern against their own documents and hardware.
The same foundation can be extended beyond basic RAG. Red Hat’s session also points to real-time and batch ingestion, agentic workflows and retrieval-augmented fine-tuning. Those extensions depend on the quality and repeatability of the ingestion layer; the useful contribution here is the concrete OpenShift AI architecture that puts Docling and distributed Ray execution on that path.
sources
comments · 0