NotebookRAG: 通过检索多个笔记本增强 crowdsourcing 智慧的 EDA 笔记本生成
NotebookRAG: Retrieving Multiple Notebooks to Augment the Generation of EDA Notebooks for Crowd-Wisdom
AI总结:
NotebookRAG通过检索多个笔记本增强crowdsourcing智慧,以生成高质量的EDA笔记本。
摘要:
高质量的探索性数据分析(EDA)在数据科学流程中至关重要,但仍然高度依赖分析师的专业知识和努力。尽管最近基于大语言模型(LLM)的方法在一定程度上减轻了这一负担,但当用户意图抽象时,它们在生成有效的分析计划和适当见解和可视化方面仍然面临困难。同时,一个庞大的分析笔记本集合,涵盖多个平台和组织,包含丰富的分析知识,有可能指导自动化EDA。检索增强生成(RAG)提供了一种自然的方法来利用此类语料库,但通用方法通常将笔记本视为静态文档,并未能充分利用其潜在知识来自动化EDA。为了解决这些限制,我们提出了NotebookRAG,一种方法,它以用户意图、数据集和现有笔记本作为输入,检索、增强和重用相关笔记本内容,以生成自动化EDA。在检索方面,我们将代码单元转换为上下文丰富的可执行组件,这提高了检索质量,并允许使用新数据重新运行以生成更新的可视化和可靠的见解。在生成方面,一个代理利用增强的检索内容来构建有效的EDA计划,推导见解,并生成适当的可视化。来自24名参与者的用户研究证据证实了我们方法在生成高质量且意图一致的EDA笔记本方面的优越性。
英文摘要:
High-quality exploratory data analysis (EDA) is essential in the data science pipeline, but remains highly dependent on analysts' expertise and effort. While recent LLM-based approaches partially reduce this burden, they struggle to generate effective analysis plans and appropriate insights and visualizations when user intent is abstract. Meanwhile, a vast collection of analysis notebooks produced across platforms and organizations contains rich analytical knowledge that can potentially guide automated EDA. Retrieval-augmented generation (RAG) provides a natural way to leverage such corpora, but general methods often treat notebooks as static documents and fail to fully exploit their potential knowledge for automating EDA. To address these limitations, we propose NotebookRAG, a method that takes user intent, datasets, and existing notebooks as input to retrieve, enhance, and reuse relevant notebook content for automated EDA generation. For retrieval, we transform code cells into context-enriched executable components, which improve retrieval quality and enable rerun with new data to generate updated visualizations and reliable insights. For generation, an agent leverages enhanced retrieval content to construct effective EDA plans, derive insights, and produce appropriate visualizations. Evidence from a user study with 24 participants confirms the superiority of our method in producing high-quality and intent-aligned EDA notebooks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。