LlamaIndex 发布 Parse Gateway:按页复杂度路由 PDF 解析

We created a document OCR router that can estimate the complexity of every single page and parse it ...

精选理由

PDF 解析也可以按页挑工具了,简单页面免费,复杂页面才上 LlamaParse,省心又省钱。

AI 摘要

LlamaIndex 发布 Parse Gateway,用 LiteParse 的 is_complex 功能逐页评估 PDF 复杂度。干净文本页由 LiteParse 免费进程内解析,扫描、表格、乱码和复杂图表页路由到 LlamaParse 更高层级。Parse Gateway 还提供 MCP 服务器,智能体可自行估算复杂度并选择解析层级。这样能避免为简单页面支付 LlamaParse 的价格,同时不牺牲复杂页面的解析准确率。

原文 · Jerry Liu

We created a document OCR router that can estimate the complexity of every single page and parse it ...

We created a document OCR router that can estimate the complexity of every single page and parse it with the relevant mode 💫 * Some pages are full of native text, which can be directly handled with LiteParse * Some pages contain scanned images or tables, which can be handled with our cost-effective or agentic tiers * Some pages contain garbled text - it decodes to garbage - so you need a heavier-weight VLM to interpret the text elements * Some pages contain heavy visuals like labeled/unlabeled charts or diagrams, which also require deeper visual processing You actually get the routing capabilities for free with the `is_complex` toggle in LiteParse. The next step is figuring out what the relevant VLM modes are to parse varying page complexities. That's well served by LlamaParse! Blog: llamaindex.ai/blog/parse-gat… 5 LiteParse: github.com/run-llama/lite… A LlamaParse: cloud.llamaindex.ai A LlamaIndex 🦙 @llama_index Not every page in your PDF needs the same treatment. A scanned cover, a dense table, a clean text page, a figure-heavy diagram.... most parsing pipelines throw all of them at the same parser, forcing a tradeoff between cost, speed, and accuracy across the whole document. We built 𝗣𝗮𝗿𝘀𝗲 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 to fix that. It uses LiteParse's 𝘪𝘴_𝘤𝘰𝘮𝘱𝘭𝘦𝘹 functionality to estimate complexity page-by-page and routes each page to the right tier based on why it's complex (scanned, sparse text, garbled encoding, vector text, embedded images) and how severely. Simple pages get parsed for free, in-process. Genuinely hard pages get routed to more capable LlamaParse tiers. No manual heuristics, no flat one-size-fits-all pipeline. And it's also available as an MCP server, so your agents can estimate complexity and choose a parsing tier themselves! The result: you stop paying premium prices for pages that never needed it, without sacrificing accuracy on the ones that d llamaindex.ai/blog/parse-gat… ttps://t.co/K5 github.com/run-llama/pars… https://t.co/Gl0Dggv8qn 🔗 View Quoted Tweet 💬 4 🔄 0 ❤️ 5 👀 892 📊 4 ⚡