Replies: 1 comment
|
Hi @minomgm! I'm Dosu and I’m helping the docling team. Great question — this is a well-known pain point with financial PDFs. Here's a summary of your options: Option 1: StandardPdfPipeline (layout model + TableFormer) This works well for actual tables but has a structural limitation for pseudo-tables: the layout postprocessor has hardcoded rules that prefer Option 2: VlmPipeline with This is likely your best bet. The VLM approach offers better semantic understanding of complex layouts, forms, and key-value structures compared to the traditional layout model [3]. With Option 3: ThreadedLayoutVlmPipeline (experimental hybrid) There's a third option you may have missed — the experimental from docling.experimental.pipeline.threaded_layout_vlm_pipeline import ThreadedLayoutVlmPipeline
from docling.experimental.datamodel.threaded_layout_vlm_pipeline_options import ThreadedLayoutVlmPipelineOptions
pipeline_options = ThreadedLayoutVlmPipelineOptions(
vlm_options=GRANITEDOCLING_2STAGE_TRANSFORMERS,
layout_batch_size=2,
vlm_batch_size=1,
)Regarding chunking: My recommendation: Start with the VlmPipeline + To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm parsing financial PDFs (Final Terms) that are primarily text-based but contain several tables and pseudo-tables (key-value structures that get classified as TextItem by the layout model instead of TableItem). My end goal is hierarchical chunking of the resulting DoclingDocument.
Given this, what parsing strategy would you recommend?
Is there a third option I'm missing?
One important constraint: I cannot rely on post-processing heuristics (regex, line-based parsers, etc.) because I don't know in advance the structure of all the PDFs I'll need to process — the pipeline must generalize across different Final Terms from different issuers, which may vary significantly in layout.
All reactions