Urgent - [Bug] Hybrid full mode collapses logical table rows and misaligns values

Author: codeAtNectworksCreated Jul 9, 2026Updated Sep 22, 2026
Labelsbug

Summary

When parsing the attached Federal Reserve G.19 PDF using the docling-fast backend in full hybrid mode, OpenDataLoader correctly detects three table regions, but the table structure and values are not preserved accurately.

Several logical source rows are collapsed into one output row. Numeric values from multiple source rows are packed into individual cells. Some column headers and adjacent numeric values are also merged or misaligned.

This changes the semantic meaning of the financial table.

The problem is present directly in OpenDataLoader's JSON, Markdown, and HTML output. It is not caused by downstream rendering.

Environment

  • opendataloader-pdf: 2.4.7
  • Hybrid backend: docling-fast
  • Hybrid mode: full
  • Python: 3.12.13
  • Java: OpenJDK 26
  • Docling: 2.96.1
  • docling-core: 2.78.0
  • PyTorch: 2.12.0
  • Transformers: 5.9.0
  • Platform: macOS 26.5.1, arm64
  • Backend device: CPU
  • OCR force mode: disabled
  • PDF structure tree: disabled
  • Table method: cluster

Input document

Federal Reserve G.19, Consumer Credit, June 6, 2025:

federal-reserve-g19-2025-06-06.pdf

The clearest failure occurs on PDF page 3 in the "Major holders" section.

Reproduction

Install the hybrid package:

bash
python -m venv .venv
source .venv/bin/activate
pip install "opendataloader-pdf[hybrid]==2.4.7"

Start the local backend:

bash
opendataloader-pdf-hybrid \
  --host 127.0.0.1 \
  --port 5002 \
  --device cpu

Parse the PDF:

python
import opendataloader_pdf

opendataloader_pdf.convert(
    input_path="federal-reserve-g19-2025-06-06.pdf",
    output_dir="output-g19",
    format="json,markdown,html,pdf",
    hybrid="docling-fast",
    hybrid_url="http://127.0.0.1:5002",
    hybrid_mode="full",
    hybrid_timeout="300000",
    table_method="cluster",
    use_struct_tree=False,
    image_output="embedded",
)

The backend completes successfully. No conversion error is reported.

Expected behavior

Each visually distinct table row should become a separate logical row.

For example, under "Major holders", these should remain six separate rows:

  1. Depository institutions
  2. Finance companies
  3. Credit unions
  4. Federal government
  5. Nonprofit and educational institutions
  6. Nonfinancial business

Each yearly or quarterly value should occupy its corresponding row and column.

The output should preserve the same association between:

  • row label
  • year or quarter
  • numeric value

Adjacent source values must not be combined into one cell.

Actual behavior

OpenDataLoader returns a table with 18 rows and 14 columns for PDF page 3, but several logical rows are collapsed.

A representative output row contains the following first cell:

Depository institutions Finance companies Credit unions Federal government 7 Nonprofit and educational institutions 8 Nonfinancial business

The corresponding first numeric cell contains six values:

1,687.5 551.4 505.1 1,381.0 24.1 35.8

The next numeric cell similarly contains:

1,827.2 695.1 532.0 1,436.4 22.0 35.8

This continues across the remaining columns.

Instead of six rows with one value per column, the output contains one row whose cells each contain six unrelated values.

Additional corruption observed

There are also cases where adjacent values are merged:

0.9 -0.4

and:

130.1 106.2

Some year headers also appear incorrect or duplicated. For example, output headers include:

2020 | 2021 | 2020 | 2021 | 2024 r

where the source table contains a progression of distinct annual columns.

An additional observation is that some headers appear correct in the raw Docling response but become incorrect in the final OpenDataLoader JSON. This may indicate both:

  1. a table-structure problem in the Docling result, and
  2. an additional mapping/alignment problem in the OpenDataLoader hybrid adapter.

Output summary

OpenDataLoader detects:

  • Page 2: table with 22 rows × 14 columns
  • Page 3: table with 18 rows × 14 columns
  • Page 4: table with 28 rows × 14 columns

The main semantic corruption is on page 3.

The table region itself is detected correctly. The failure is in reconstructing its logical rows, columns, headers, and cell values.

Impact

This is a data-integrity issue rather than a cosmetic formatting issue.

Consumers using the JSON, Markdown, or HTML output cannot determine which numeric value belongs to which financial category without reconstructing the table from the original PDF.

For RAG, financial analysis, accessibility, or automated extraction, this can lead to incorrect answers because values become associated with the wrong row.

Attachments

I can provide:

  • Original Federal Reserve G.19 PDF
  • OpenDataLoader JSON output
  • OpenDataLoader Markdown output
  • OpenDataLoader HTML output
  • Annotated PDF output
  • Raw docling-fast response
  • Screenshot comparing the source table with the parsed grid

Federal Reserve G.19 PDF

Source: opendataloader-project/opendataloader-pdf