Cerebra:在交互式SQL编写中对隐式知识的对齐
Cerebra: Aligning Implicit Knowledge in Interactive SQL Authoring
AI总结:
Cerebra是一种交互式NL-to-SQL工具,通过在SQL编写过程中对齐用户与LLM之间的隐式知识,提高定制化SQL编写的支持能力。
摘要:
LLM驱动的工具显著降低了编写SQL查询的门槛。然而,用户指令通常不够明确,假设模型理解隐式知识,如数据集模式、领域惯例和任务特定要求,这些并未明确提供。这导致频繁出现错误的脚本,需要用户反复澄清意图。此外,用户难以验证生成的脚本,因为他们无法确认模型是否正确应用了隐式知识。我们介绍了Cerebra,一种交互式NL-to-SQL工具,能够在SQL编写过程中对齐用户和LLM之间的隐式知识。Cerebra会根据用户指令自动从历史SQL脚本中检索隐式知识,并以交互式树形视图呈现,供代码审查,并支持迭代细化以改进生成的脚本。为了评估Cerebra的有效性和可用性,我们进行了16名参与者参与的用户研究,证明了其在定制SQL编写中的改进支持。Cerebra的源代码可在https://github.com/zjuidg/CHI26-Cerebra获取。
英文摘要:
LLM-driven tools have significantly lowered barriers to writing SQL queries. However, user instructions are often underspecified, assuming the model understands implicit knowledge, such as dataset schemas, domain conventions, and task-specific requirements, that isn't explicitly provided. This results in frequently erroneous scripts that require users to repeatedly clarify their intent. Additionally, users struggle to validate generated scripts because they cannot verify whether the model correctly applied implicit knowledge. We present Cerebra, an interactive NL-to-SQL tool that aligns implicit knowledge between users and LLMs during SQL authoring. Cerebra automatically retrieves implicit knowledge from historical SQL scripts based on user instructions, presents this knowledge in an interactive tree view for code review, and supports iterative refinement to improve generated scripts. To evaluate the effectiveness and usability of Cerebra, we conducted a user study with 16 participants, demonstrating its improved support for customized SQL authoring. The source code of Cerebra is available at https://github.com/zjuidg/CHI26-Cerebra.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。