跳到正文
数字商店
原文
Shreya Shankar· @sh_reya · X·· 25 天前AI 评分60
AI 导读

DocETL 作者 Shreya Shankar 转发评价了一款长文档解析工具,指出团队当初为大语言模型和智能体设计的流水线重写指令,对人类理解长文档的交互界面同样有效。该工具由开发者 Vishal 基于 DocETL 算子思路构建,针对长文档单句总结信息不足的问题,调用模型为各段落分别提取摘要后再合并去重,以优化长章节的阅读体验。

正文 · AI 翻译

我一直在认真阅读 Vishal 最近关于用 UI 理解长文档的帖子,很受启发。当我们提出 DocETL 重写指令(即自动重写 LLM 流水线以提高准确性的方法)时,我们考虑的是 LLM/agent。但它们显然对人类同样有用!

引用Vishal Bakshi@vishal_learner
我做了一个工具来帮我理解 Anthropic 长达 421 页的 Form S-1。点击招股书中的任意章节,顶部面板会显示该章节的简短摘要(TLDR)。 对于“电力与燃料约束”这一节,TLDR 只有一句话: > “电力短缺、公用事业与监管障碍、无成本上限的天然气价格敞口,以及当地反对,可能会抬高 Anthropic 的成本并限制数据中心增长。” 然后我去看了原文,这一节有六个段落。我不认为一句话足以概括六个段落,尤其是对于评估风险/回报的投资者来说。 于是我告诉 Claude Opus:为每个段落分别创建一句话的 TLDR,然后把它们合并,必要时去重,形成这一节的段落式 TLDR。 我想到这个方法的灵感来自 @sh_reya 等人的 DocETL 论文。DocETL 是 DocWrangler 背后的引擎,它提供了一套 LLM 可对文档执行的操作符:map、parallel map、reduce、filter、resolve、equijoin、unnest、split、gather。例如,“map”就是用 LLM 对每个文档执行相同的转换。 所以这是一个跨越六个段落的 map 操作,操作内容是“把段落概括成一句话”。然后对这六句话做一次去重,因为其中一些说的是同一件事。 现在这一节的 TLDR 是一个合并了全部六条的段落,开头是:“Anthropic 的数据中心所需的电力超过了电网能快速新增的量,推高了价格;Anthropic 已公开承诺承担它给消费者造成的涨价。” 亲自试试吧:https://t.co/BXj6iR4tRK
原文

I built a tool to help me understand Anthropic's 421-page Form S-1. Click a section of the filing, and a panel at the top shows a short summary (TLDR) of it. For the "Electrical Power and Fuel Constraints" section, that TLDR was one sentence: > "Power shortages, utility and regulatory hurdles, natural gas price exposure without cost caps, and local opposition could raise Anthropic's costs and limit data center growth." Then I went to the actual filing, and that section has six paragraphs. I did not believe one sentence was a sufficient summary of six paragraphs. Especially for investors assessing risk/reward. So I told Claude Opus: create a one-sentence TLDR for each paragraph, then combine them, deduplicating if needed, into one paragraph for the section's TLDR. The way I thought of this is because of the @sh_reya et al DocETL paper. DocETL is the engine behind DocWrangler, and it has a suite of operators an LLM can perform on documents: map, parallel map, reduce, filter, resolve, equijoin, unnest, split, gather. "Map," for example, uses an LLM to run the same transformation on every document. So this is a map operation across six paragraphs, where the operation is "summarize the paragraph into a sentence." Then a dedupe across those six sentences, since some of them say the same thing. Now the TLDR for that section is a paragraph that combines all six, starting with: "Anthropic's data centers need more electricity than the grid can add quickly, pushing prices up; Anthropic has publicly promised to cover increases it causes for consumers." Try it yourself: https://t.co/BXj6iR4tRK

在 X 查看被引用的帖子

来源:Shreya Shankar · x.com