Open WebUI document extraction with Docling

Docling Serve gives Open WebUI layout-aware extraction for PDFs, tables and Word files. This page covers when it is worth the added service, how to size CPU or GPU, and how it compares with Tika.

On this page

Open WebUI document extraction with Docling for knowledge bases that rely on tables and layout

If your team loads policy PDFs, contracts or spreadsheets into Open WebUI knowledge bases and gets vague or wrong answers, the cause is often extraction rather than the model. Docling Serve is a separate, layout-aware extraction service that Open WebUI can call to convert documents into structured text, keeping tables, headings and reading order intact before chunking and embedding. Teams usually need it when answers depend on table cells, multi-column layouts, or section structure that plain text extraction flattens.

Open WebUI's built-in extraction is the default, and it is not replaced automatically when you add Docling to your environment. Selecting Docling is a deployment decision: you run the Docling Serve container in infrastructure you control, point Open WebUI's document extraction settings at it, and then confirm that the service is reachable from the Open WebUI replicas. Check the current extraction engine options and the configuration keys in the Open WebUI documentation for your release, since the names of these settings have changed across versions. Before you commit, confirm which file types your library actually contains.

Build a small test set from the documents that fail today, including a table-heavy spreadsheet export, a scanned-looking PDF and a contract with numbered clauses. Run the same files through the built-in engine and through Docling, then ask the same questions in a knowledge base built from each and compare the cited passages. This shows whether Docling's gain justifies a second service to size, patch and monitor. If your failures come from scanned images rather than layout, OCR is the more relevant fix, and re-ingestion will be required after any engine change, so plan that window before you switch.

Docling or Tika: which extraction engine fits your documents

Reports, contracts, filings and technical manuals often carry meaning in their structure: headings that group sections, tables whose columns define what each value means, and multi-column text that reads in a specific order. A layout-aware engine such as Docling tries to recover that structure before it writes text into chunks. For retrieval, this matters because a chunk that keeps a table's header row with its values can answer a question about a figure, while a flattened stream of cells often cannot. A general extractor such as Apache Tika does well at pulling readable text out of a PDF quickly, which is often enough for prose-heavy documents with simple layouts.

  • Tables with meaning in their headers: Check whether answers depend on which column a number sits under, since flattened tables lose that link.
  • Multi-column pages: Test that reading order survives, because interleaved columns produce chunks that mix unrelated sentences.
  • Headings and sections: Confirm that section titles are kept, so retrieved passages can be traced back to their part of the document.
  • Repeated headers and footers: Verify that page furniture does not repeat inside every chunk and dilute search results.
  • Formulas and figure captions: Decide whether these must be retained or can be dropped for your questions.

Before committing, extract five to ten representative files with each engine and compare the chunks for table questions your users actually ask.

Docling Serve settings and when each fits

This table lists the configuration decisions that shape a Docling Serve setup for Open WebUI, with the situations where each option fits and what it costs in operations or accuracy. Read each row as a choice to make before deployment, and confirm exact setting names and defaults against the Open WebUI documentation for your version.

DecisionWhen it fitsTrade-offConfirm before choosing
Service placement (same host, same cluster or separate VM)Co-locate with Open WebUI for small teams with modest upload volume; separate it when extraction load should not slow chatCo-location is simpler to run but shares CPU and memory with inference and the web tierWhich hosts or namespaces Open WebUI can reach on the internal network
CPU imageMixed document sets with occasional PDFs and Word files, and no GPU in the environmentLower hardware cost and simpler scheduling, but longer processing for large or table-heavy filesCurrent image tags and supported architectures in the Docling Serve project
GPU imageHigh upload volume, large scanned or layout-heavy PDFs, or strict turnaround expectations for knowledge ingestionFaster processing when a supported GPU is present, at the cost of accelerator capacity, driver management and node schedulingDriver and CUDA requirements for the chosen image and your node pool
Open WebUI extraction engine set to Docling ServeTeams that want layout-aware extraction for PDFs, tables and Word files instead of plain text parsingExtraction quality changes for existing knowledge bases only when documents are re-processed, so plan a re-indexThe exact engine name and the Docling Serve URL field in the admin settings for your release
Network reachability (service URL and allowed paths)Private, internal-only service reachable only from Open WebUI pods or containersTight network rules block misconfigured callers but can cause silent upload failures if DNS or ports are wrongRequired port, whether TLS is used between services and any authentication option the service exposes
Authentication on the extraction endpointAny shared network segment where other workloads could send documents to the serviceAdditional configuration and secret handling, but it prevents unrelated callers from using the parserWhether your Docling Serve version supports an API key or similar control and where Open WebUI stores it
OCR optionsScanned PDFs and images that contain no text layerOCR increases processing time and can reduce accuracy on poor scans; enable it only for documents that need itWhich OCR engines are bundled in your image, languages supported and the setting name in Open WebUI
Table-structure recognitionKnowledge bases built around financial statements, specifications or other table-heavy documentsBetter table fidelity with more processing time per pageWhether the option is exposed in Open WebUI or only in the service configuration
Resource limits and concurrencyAny production deployment where several users upload at the same timeLimits protect chat latency but cause queueing or timeouts for large batchesDocumented concurrency and timeout settings for your version and how failures appear in Open WebUI logs

How CPU and GPU deployment change throughput and cost

Docling Serve can run on CPU or on an accelerator, and the choice changes how fast documents convert and what the extraction tier costs to own. The cards below cover the workload and hardware questions to settle before buying or provisioning anything, and the measurements that should decide the question.

Document volume and re-ingestion

Count how many documents enter knowledge bases each month and how often existing files are re-processed. Re-ingestion after a chunking, embedding or extraction change repeats the whole conversion job, so a stable corpus with rare rebuilds rarely justifies an accelerator. A frequently synced corpus, such as a repository mirrored on a schedule, changes the arithmetic. Ask which pipeline changes will trigger full re-conversion.

Conversion latency for large PDFs

Long, layout-heavy PDFs are where hardware choice shows up, because table structure and page layout analysis dominate processing time. Measure conversion time for your ten largest and most complex files, not for a typical one-page memo. Record queue wait separately from conversion time so you can tell whether the bottleneck is the extraction service or Open WebUI's own ingestion path.

Hardware availability and procurement

Accelerator capacity in your data center or cloud account may take longer to obtain than CPU capacity, and it must match the drivers and runtime your Docling Serve image expects. Confirm the exact image variant, driver version and supported accelerator family with the Docling project before ordering. Plan for a spare or a fallback CPU pool so a failed node does not stop ingestion.

Operating cost of an accelerator

An accelerator adds recurring costs beyond purchase or instance rental: driver and runtime maintenance, image rebuilds on each Docling release, monitoring, and the staff time to triage GPU-specific failures. A CPU deployment shifts cost toward more cores and memory. Ask your team or partner to model both options over a full year, including the rebuilds, and to state which costs recur monthly and which are one-time.

Power and data center constraints

Accelerators draw more power and generate more heat than CPU nodes of similar footprint, which can limit where they fit in an existing rack or colocation contract. Check power budget, cooling headroom and rack density limits with facilities before committing to a design. In air-gapped or sovereign sites, also confirm how new hardware is approved and delivered, since that timeline often controls the project more than software work does.

Measuring before choosing

Build a representative test set from your own files, including scanned or table-heavy documents, and time conversion on a CPU node first. Compare output quality on the same files, not just speed, because a faster result that loses table structure is not a saving. Repeat the test on the candidate accelerator and write down the throughput per node and the hardware needed to meet your re-ingestion window.

Setting up Docling Serve with Open WebUI

This sequence takes an Open WebUI installation from a confirmed version and install method to a tested knowledge base, where Docling Serve extracts text, tables and Word content into chunks with working citations. Each step closes with a check, so the team knows whether to continue. Exact menu paths are in the Open WebUI features documentation.

  1. Confirm the Open WebUI version and install method

    The platform or infrastructure lead records the running Open WebUI version from the admin panel and the install method used: Docker, Docker Compose, Kubernetes with Helm, or pip. Review the GitHub release notes for the version you run and for any newer version you plan to move to, looking for changes to document processing. Also note the replica count and where uploaded files are stored, because multiple replicas need shared file storage that every replica can reach. Done when a written record lists version, install method, replica count and file storage location.

  2. Deploy Docling Serve on a private network segment

    The platform team runs Docling Serve as its own service on infrastructure you control, placed on a network segment that the Open WebUI backend can reach but end users cannot. Choose CPU or GPU hardware based on your expected document volume and the hardware you can provide, and confirm the service is not exposed to the internet or to general user networks. Done when a request from the Open WebUI backend to the Docling Serve health or status endpoint, as documented by the Docling project, succeeds, and the same request from a user network fails.

  3. Set the extraction engine in admin settings

    An Open WebUI administrator opens the document processing settings in the admin panel, using the menu path in the features documentation, and selects Docling as the content extraction engine. Enter the internal address of the Docling Serve instance and save. Keep a note of the previous engine so you can roll back. Done when the settings page shows Docling after a reload, and a test upload in the next step produces no connection error in the Open WebUI logs. Settings apply to new ingestion, so existing files are not changed yet.

  4. Test with a PDF table and a Word file

    The administrator prepares two non-sensitive test files: a PDF with a multi-row table and clear headings, and a Word document containing a table and a numbered list. Upload both to a scratch knowledge base. Open the processed content and compare it with the source. Done when table rows and columns stay aligned, headings and list order survive, and no paragraph or table cell is missing. If you still have the previous engine available, run the same files through it and keep both outputs for comparison.

  5. Re-index an existing knowledge base

    Files indexed with the previous engine keep their old chunks until they are processed again. The administrator selects one production knowledge base, reprocesses or re-adds its files using the controls the admin interface provides, and records which files were re-ingested. Confirm with the vendor documentation how reprocessing behaves in your version. If the embedding model also changed, the whole collection needs a full re-index. Done when the change log lists every re-ingested file and the chunk counts for each file are recorded.

  6. Verify chunk output and citations

    The knowledge base owner writes a short set of test questions whose answers sit in table cells and in Word tables, then asks them in a model chat that uses the knowledge base. Open the retrieved chunks and the citation view for each answer. Done when table content appears in readable form inside the chunks, each citation points to the correct document and section, and the answers match the source. Save the questions, expected answers and results so the same set can be rerun after future upgrades or setting changes.

How extracted layout reaches retrieval and answers

The extraction engine decides what the chunker sees, so it sets the ceiling for everything retrieval can do later. When a user uploads a file to a knowledge base, Open WebUI sends it to the configured extraction engine. With Docling Serve selected, the service returns a structured representation of the document, covering pages, headings, paragraphs, lists and tables, instead of a plain text dump. Open WebUI then splits that output into chunks, sends each chunk to the embedding model, and writes the vectors and chunk text to the configured vector store. At query time, the retriever searches those stored vectors, passes the matching chunks to the model, and citations point back to the chunks used. Confirm in your installed version which structured fields Open WebUI keeps from the Docling output and which it flattens, because that decides what survives into the index.

Table and heading structure matter most at the chunk boundary. A chunker that cuts on length alone can split a table across two chunks, leaving the second half without its header row, so the model sees numbers with no column labels. Headings matter for a similar reason. If the section heading is not carried into each chunk, a citation points to a passage that reads as a fragment with no context. Test this with documents your users depend on: a multi-page policy with nested headings, a financial table with merged cells, and a Word file with comments. For each test question, record which chunk the answer cites and whether that chunk contains the heading and the full row or clause the answer depends on. These checks show whether Docling's layout output reaches the index or gets lost before it.

Changing the extraction engine later cannot be handled as a simple configuration switch for existing content. Documents already in a knowledge base were chunked and embedded from the output of the engine that processed them, so Docling only affects new uploads until those files go through a re-processing pass. Plan that pass for every knowledge base that matters, and confirm with your administrator how Open WebUI handles existing chunks and vectors during it and how long it takes at your document volume. Keep chunking settings and the embedding model fixed during the comparison, or the results will not isolate what the engine changed. Chunk size, overlap, Markdown header splitting and embedding model choice are separate decisions with their own trade-offs, and each is covered on its own page.

Where Docling Serve sits in the upload and retrieval path

The path starts when a user uploads a file to Open WebUI, which sends the file to Docling Serve over the private network for layout-aware extraction. Extracted text and tables return to Open WebUI, where they are chunked, embedded and written to the vector store. At query time, retrieval reads from that store, so the extraction service is only involved on upload. Check that the Docling Serve endpoint sits inside the trust boundary and that no step sends documents to an outside service.

Upload, extraction, indexing and query-time retrieval, with the internal extraction service inside the trust boundary.

Keeping the extraction service private and governed

Docling Serve receives the most sensitive content in your knowledge pipeline, so its network position, caller list, data handling and logs matter as much as its extraction quality. The cards below cover the controls to decide before the service handles real documents, and what to verify once it does.

Keep the service off the public internet

Run Docling Serve on a private network segment with no public listener, reachable only from the Open WebUI backend. Confirm that the service has no route to the internet for outbound calls it does not need, and that a load balancer or ingress does not expose it by accident. Test this from outside the network, not only from the design document. Because Open WebUI uploads contain the documents your staff choose to share, an exposed extraction endpoint is an exposed document store.

Restrict which hosts can call it

Limit inbound connections to the Open WebUI application hosts or pods using network policies, security groups or host firewall rules. Pair the network rule with a check that only the expected service identity sends requests, so a compromised workstation on the same subnet cannot submit files for conversion. Document the allowed sources in your change record so that a new Open WebUI replica or a load test host is added deliberately.

Handle uploaded files at rest and in logs

Extraction works on temporary copies, but the conversion service, reverse proxy and container runtime may each write request bodies, temp directories or debug output. Ask the team to confirm where temporary files are written, how long they persist, and whether request payloads appear in access or error logs. Mount temp storage on an encrypted volume where your policy requires it, and disable payload logging. Your retention rules should cover the Open WebUI knowledge base as well as these intermediate copies.

Set resource limits per request

A single large or malformed PDF can consume memory and CPU for long enough to starve other users of the same host. Set container memory and CPU limits, a maximum request body size at the proxy, and a conversion timeout that matches your largest expected file. Test with a deliberately oversized document in a staging environment and confirm that the service fails the request cleanly rather than restarting. Tune these values only after you have measured typical document sizes in your own library.

Verify image provenance and patch cadence

Pin the Docling Serve image to a specific version digest rather than a floating tag, and record which build is running in production. Scan the image for known vulnerabilities before each deployment and include the parser's Python dependencies in that scan. Agree on who reviews upstream releases and how quickly security fixes are rolled into a tested build. Ask your DeployOpen contact to confirm the image source and signing method your organization requires.

Log access for audit

Record who or what submitted each conversion request, when, the file type and size, the conversion outcome, and the calling Open WebUI instance. These records let a security team answer whether a particular file was processed, and they support incident response if a service account is misused. Keep document contents out of these logs, store them in your central log platform with a defined retention period, and test that a sample request produces the expected entry.

Questions buyers ask about Docling in Open WebUI

What does it cost to add Docling extraction to Open WebUI?

Cost comes from the scope of work, and DeployOpen does not publish a price list, so a quote follows from the written scope. Effort rises with the document mix (digital PDFs, scanned pages, tables, Word files with embedded images), the number of knowledge bases, the number of Open WebUI replicas that must reach the extraction service, and whether Docling Serve runs on CPU or GPU hosts you already operate. One-time work covers design, build, testing and handover. Recurring costs sit mainly in compute, storage and the staff who apply upgrades. Ask any quote to list the document types in scope, the hosts, the test corpus and the handover items so you can compare proposals line by line.

How long does a Docling pilot take and what does it depend on?

The schedule depends on how many document types must work on day one, whether the Docling Serve host exists yet, and whether representative documents are available for testing. Most delays come from access approvals, network rules between Open WebUI and the extraction service, and the number of review rounds on extracted output. Ask for the timeline in the written scope and check that it lists entry criteria: provisioned hosts, approved test documents and a named reviewer who can judge table output. Duration varies by environment, so the agreed scope should set it rather than a generic estimate.

What must our team provide before a Docling engagement starts?

Your team supplies access and decisions, while DeployOpen does the build and test work inside your infrastructure. Typically the list includes:

  • Representative sample documents, including tables, scanned pages if they are in scope, and Word files with images
  • Access to the Open WebUI instance, your cloud or data center accounts, and a host or namespace for Docling Serve
  • Network rules that allow Open WebUI to reach the extraction service and block other paths
  • A business owner who can confirm whether extracted tables are correct
  • Decisions on logging, retention of uploaded files and which groups may upload to which knowledge base

Missing items usually delay the pilot more than the technical build does.

Can our own staff run Docling Serve after handover?

Yes, if your platform team already operates containers and can own upgrades, but the answer depends on skills and staffing. Docling Serve is a separate service with its own versions, resource limits, logs and health checks, so someone must own patching and capacity planning. Handover should include runbooks, a configuration record and a test set that you re-run after each upgrade. If your team prefers ongoing support, upgrades and continuous testing are available as retainers. Before handover, confirm with your platform team who responds when extraction jobs queue or fail.

When is Apache Tika the better choice than Docling?

Tika is often the better choice when your files are mostly office documents or plain PDFs with simple text, and you do not need table structure or layout detail. Docling deserves a closer look when tables, multi-column pages, headings and reading order determine whether answers are correct. Tika is generally simpler to size and operate, which lowers ongoing effort. Compare both engines on your own corpus, using a small set that includes your hardest tables and scans. Keep the same test questions for each run so the comparison reflects extraction quality rather than changes in the test.

Does Docling need a GPU to work in Open WebUI?

No, a GPU is not required to run Docling, but hardware choice changes throughput and the answer depends on document volume and turnaround expectations. CPU deployments are the simpler starting point, and the processing queue usually shows the limit first. A GPU helps when you process large batches, heavy scanned content or need faster ingestion of uploads. Before sizing, confirm the current Docling Serve version and its hardware notes with the project, then test your own documents on the hardware you plan to use. Extraction runs at upload time, so the cost mostly appears in ingestion speed rather than chat response time.

How do we check retrieval quality after Docling is in place?

Validate retrieval with a fixed question set, not with occasional spot checks. Write questions that users actually need answered, record the source passage that should be retrieved for each, and run the set after every change. For each question, check whether the correct chunk appears in the top results and whether the answer cites it. Run the same set against each extraction engine you compare. Changes to embedding model, chunking or search settings require re-indexing or re-testing, so repeat the full set afterward. Include hybrid search and reranking settings in the same test. The Open WebUI features documentation lists the retrieval options to test.

Where to verify current extraction settings

Confirm the extraction engine options, the Docling Serve connection fields and the default behavior against the version you actually run before you plan the rollout. The Open WebUI features documentation at Open WebUI features describes the document extraction engines and the retrieval settings in the administration panel, and the Open WebUI releases page on GitHub lists what changed in each tagged release. Read the release notes for your version and for every version between it and the one you plan to target, because engine names, supported formats and admin field labels can change between releases. The most recent release in the supplied record is v0.12.3, published on October 16, 2026, following v0.12.0 on October 10 and v0.11.0 in July. A setting that works on v0.11.0 may not be in the same place on v0.12.3, so a page written for one version can mislead a team on another.

Record the result of this check in your design notes, including the exact version tag, the engine name as shown in the admin settings, and the Docling Serve version your team has tested against. Ask the platform owner to confirm which extraction engine is currently selected, whether the external Docling option is available in your build, and what the default values are for timeouts and file size limits. If the documentation and the running instance disagree, trust the running instance and raise the gap with the maintainers before you build on it. Repeat this check before each upgrade, because the rollout plan for Docling depends on the exact behavior of the version in production, not on what was true when this page was written.

How DeployOpen scopes and delivers Docling extraction

DeployOpen plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including Open WebUI. For document extraction with Docling, we start from the file types, the knowledge bases and the hardware you actually have, then deliver a configured Docling Serve deployment that your team can run.

How we scope

  • Inventory the document types, volumes and knowledge bases that Docling Serve must handle in Open WebUI.
  • Decide CPU or GPU deployment, and whether Tika remains for specific formats, based on your files and hardware.
  • Agree scope, deliverables and timelines in writing before work starts, with a quote that follows from that scope.

How we build

  • Deploy Docling Serve in your cloud accounts, data center or air-gapped network, with network access limited to Open WebUI.
  • Configure the Open WebUI extraction engine, then test PDFs, tables and Word files against a sample set you approve.
  • Check table and layout output on your own documents, and record the settings that produced acceptable results.

How we hand over

  • Deliver runbooks for deployment, configuration changes, version pinning and re-testing after Docling or Open WebUI upgrades.
  • Document extraction settings, sizing assumptions, logging and the test results that support your internal review.
  • Walk your platform and security teams through operation, access controls and what to check before re-ingesting knowledge.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, sized to the scope you agree.
  • Retest extraction quality when Docling, Open WebUI or your document mix changes, and report the findings in writing.
  • Confirm with your team which support tier, response expectations and service terms apply before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.