跳到正文
Jerry Liu· @jerryjliu0 · X·· 3 小时前AI 评分64
AI 导读

LlamaIndex 的 Jerry Liu 发布 Document Parsing Protocol(DPP),为数百种 OCR 模型和工具解析文档方式不一的问题提出统一标准。

正文 · 原文

Introducing the Document Parsing Protocol (DPP)

There are hundreds of different OCR models and tools, but they might all parse a document in different ways.

Some errors are very clear-cut (e.g. hallucinating text, or completely misaligning a table), but many errors are much more ambiguous (e.g. how to represent split tables sharing a header). It's an issue that plagues most parse benchmarks too, because they inherently reward a certain style even if other styles might be semantically correct.

We introduce a protocol that proposes a standard way of parsing these documents into a correct format. We've curated a list of 140 rules that cover literally every aspect of doc parsing, for instance:
- tables: borderless whitespace tables, header-only tables, horizontal slicing, side-by-side mini tables
- forms: key-value regions, checkboxes, checklists, ids and labels, fields outside the form,
- charts: standardized chart output, multiple charts, gantt charts, line charts

You can use DPP as an evaluation rubric for LLMs when determining the quality of parsing a document.

It's not a full evaluation benchmark (yet), but an initial evaluation guide, and meant to encourage a discussion on what are the "best" ways to parse a document.

Check it out: https://www.parseprotocol.com/guide/forms-forms-and-key-value-regions

Blog: https://www.llamaindex.ai/blog/introducing-the-document-parsing-protocol

引用LlamaIndex 🦙@llama_index
Is that a table, or just text that happens to line up? If a table has two header rows, should the output preserve both? Parsers make these judgment calls differently. Those differences shape what your agent understands about a document. We built the Document Parsing Protocol (DPP) to give those decisions a shared rulebook. DPP covers text, tables, forms, charts, and diagrams, and even includes chemical structures and music notation. Each rule comes with example pages and expected outputs to make it concrete. The working draft is live, and we’d love your feedback :) Get the Claude skill or ChatGPT reference file, try it on your messiest page, and let us know what comes back. Try it here: https://www.parseprotocol.com/#adopt Read more: https://www.llamaindex.ai/blog/introducing-the-document-parsing-protocol
在 X 查看被引用的帖子

来源:Jerry Liu · x.com