Shreya Shankar· @sh_reya · X·· 25 天前AI 评分60
AI 导读
DocETL 作者 Shreya Shankar 转发评价了一款长文档解析工具,指出团队当初为大语言模型和智能体设计的流水线重写指令,对人类理解长文档的交互界面同样有效。该工具由开发者 Vishal 基于 DocETL 算子思路构建,针对长文档单句总结信息不足的问题,调用模型为各段落分别提取摘要后再合并去重,以优化长章节的阅读体验。
正文 · 原文
I’ve been really enjoying Vishal’s latest posts on UI to understand long docs. When we came up with DocETL rewrite directives (ie ways to automatically rewrite LLM pipelines to improve accuracy), we had LLMs/agents in mind. But they are very clearly useful for humans as well!
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