arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.07209cs.CLcs.AIcs.CE
收藏

Data-Copilot:通过自主工作流衔接海量数据与人类

Data-Copilot: Bridging Billions of Data and Humans with Autonomous Workflow

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院)

Wenqi Zhang, Yongliang Shen, Zeqi Tan, Guiyang Hou, Weiming Lu, Yueting Zhuang

AI总结:

针对大语言模型难以处理复杂数值计算、表格操作且上下文有限的问题,提出以代码为核心、带前置数据探索接口的数据分析智能体Data-Copilot,可高效自主完成海量数据的查询、处理与可视化,已随中国金融数据开源。

摘要:

金融、气象、能源等行业每天都会产生海量数据。高效管理、处理并展示这些数据需要专业技能,且往往繁琐重复。利用大语言模型(LLM)开发自动化工作流是极具前景的解决方案。但LLM并不擅长处理复杂数值计算和表格操作,还受限于上下文窗口长度。基于此,我们提出Data-Copilot——一款可根据人类多样化需求,自主完成海量数据查询、处理与可视化的数据分析智能体。其创新点有两方面:首先,它是一款以代码为核心的智能体,接收人类需求后生成代码作为中间媒介来处理海量数据,对大规模数据处理任务具备高度灵活性。其次,Data-Copilot设置了前置数据探索阶段,用于探索如何设计更通用、无错误的接口以实现实时响应。具体而言,它会主动探索数据源,发现大量常见需求,并将其抽象为众多通用接口供日常调用。在处理实时请求时,Data-Copilot只需调用这些预先设计的接口,就能将原始数据转化为最符合用户意图的可视化输出(如图表、表格)。与从零生成代码相比,调用这些经过预先设计且通过编译器验证的接口,能大幅降低实时请求过程中的错误率。此外,接口工作流比代码效率更高,可解释性也更强。我们已将Data-Copilot连同股票、基金、新闻等海量中国金融数据开源,展现出良好的应用前景。

英文摘要:

Industries such as finance, meteorology, and energy generate vast amounts of data daily. Efficiently managing, processing, and displaying this data requires specialized expertise and is often tedious and repetitive. Leveraging large language models (LLMs) to develop an automated workflow presents a highly promising solution. However, LLMs are not adept at handling complex numerical computations and table manipulations and are also constrained by a limited context budget. Based on this, we propose Data-Copilot, a data analysis agent that autonomously performs querying, processing, and visualization of massive data tailored to diverse human requests. The advancements are twofold: First, it is a code-centric agent that receives human requests and generates code as an intermediary to handle massive data, which is quite flexible for large-scale data processing tasks. Second, Data-Copilot involves a data exploration phase in advance, which explores how to design more universal and error-free interfaces for real-time response. Specifically, it actively explores data sources, discovers numerous common requests, and abstracts them into many universal interfaces for daily invocation. When deployed in real-time requests, Data-Copilot only needs to invoke these pre-designed interfaces, transforming raw data into visualized outputs (e.g., charts, tables) that best match the user's intent. Compared to generating code from scratch, invoking these pre-designed and compiler-validated interfaces can significantly reduce errors during real-time requests. Additionally, interface workflows are more efficient and offer greater interpretability than code. We open-sourced Data-Copilot with massive Chinese financial data, such as stocks, funds, and news, demonstrating promising application prospects.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑