DocWrangler:驾驭语义数据处理
Steering Semantic Data Processing With DocWrangler
AI总结:
DocWrangler是一个混合主动IDE,通过原位笔记、LLM辅助提示精炼和操作分解,帮助用户构建有效的语义数据处理流水线,并在评估中揭示了用户的系统性策略。
摘要:
非结构化文本长期以来难以在大规模下进行自动分析。大型语言模型(LLM)如今通过实现语义数据处理提供了一条前进之路,其中熟悉的数据处理操作符(例如,映射、归约、过滤)由LLM而非代码驱动。然而,构建有效的语义数据处理流水线与传统数据流水线相比呈现出一种转变:用户需要理解其数据才能编写有效的流水线,但他们又需要构建流水线来提取理解所需的数据——同时还要应对LLM的特性和不一致性。我们提出了DocWrangler,一个用于语义数据处理的混合主动集成开发环境(IDE),具有三个新颖特性以解决用户、其数据及其流水线之间的差距:(i)原位用户笔记,允许用户跨文档和LLM输出检查、注释和跟踪观察结果;(ii)LLM辅助的提示词精炼,将用户笔记转化为改进的操作;(iii)LLM辅助的操作分解,识别操作或文档何时对LLM而言过于复杂而无法正确处理,并建议分解方案。我们的评估结合了一项包含10名参与者的出声思考研究和一项公开部署(可在docetl.org/playground获取),后者记录了1500多个会话,揭示了用户如何为其语义数据处理任务制定系统性策略;例如,将开放式操作转化为分类器以便于验证,以及有意使用模糊提示以更多地了解其数据或LLM能力。
英文摘要:
Unstructured text has long been difficult to automatically analyze at scale. Large language models (LLMs) now offer a way forward by enabling {\em semantic data processing}, where familiar data processing operators (e.g., map, reduce, filter) are powered by LLMs instead of code. However, building effective semantic data processing pipelines presents a departure from traditional data pipelines: users need to understand their data to write effective pipelines, yet they need to construct pipelines to extract the data necessary for that understanding -- all while navigating LLM idiosyncrasies and inconsistencies. We present \docwrangler, a mixed-initiative integrated development environment (IDE) for semantic data processing with three novel features to address the gaps between the user, their data, and their pipeline: {\em (i) In-Situ User Notes} that allows users to inspect, annotate, and track observations across documents and LLM outputs, {\em (ii) LLM-Assisted Prompt Refinement} that transforms user notes into improved operations, and {\em (iii) LLM-Assisted Operation Decomposition} that identifies when operations or documents are too complex for the LLM to correctly process and suggests decompositions. Our evaluation combines a think-aloud study with 10 participants and a public-facing deployment (available at \href{https://docetl.org/playground}{docetl.org/playground}) with 1,500+ recorded sessions, revealing how users develop systematic strategies for their semantic data processing tasks; e.g., transforming open-ended operations into classifiers for easier validation and intentionally using vague prompts to learn more about their data or LLM capabilities.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。