arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.16470cs.DBcs.AIcs.SE
收藏

面向异构数据上自然语言查询的声明式技术

Declarative Techniques for NL Queries over Heterogeneous Data

IBM Research(IBM研究院)

Elham Khabiri, Jeffrey O. Kephart, Fenno F. Heath, Srideepika Jayaraman, Fateh A. Tipu, Yingjie Li, Dhruv Shah, Achille Fokoue, Anu Bhamidipaty

AI总结:

针对自然语言查询需跨数据库与 API 访问异构数据源的问题,本文扩展 Spider 基准并提出声明式方法,效果显著优于现有基于 LLM 的智能体式或命令式代码生成系统。

摘要:

在许多工业场景中,用户希望以自然语言提出问题,而这些问题的答案需要汇集来自多种结构化数据源的信息。随着大型语言模型(LLM)的出现,应用程序如今能够将自然语言问题转换为一组 API 调用或数据库调用,执行这些调用,并将结果组合成恰当的自然语言回答。然而,这些应用在真实工业场景中仍不实用,因为它们无法应对此类环境中普遍存在的数据源异构性。在本工作中,我们通过引入广泛使用的 Spider 基准数据集的两个扩展版本,来模拟真实工业环境的异构性;这些扩展要求结合数据库调用与 API 调用。随后,我们提出一种处理此类数据异构性的声明式方法,并证明其在应对数据源异构性方面显著优于最先进的基于 LLM 的智能体式或命令式代码生成系统。我们增强后的基准数据集已向研究社区开放。

英文摘要:

In many industrial settings, users wish to ask questions in natural language, the answers to which require assembling information from diverse structured data sources. With the advent of Large Language Models (LLMs), applications can now translate natural language questions into a set of API calls or database calls, execute them, and combine the results into an appropriate natural language response. However, these applications remain impractical in realistic industrial settings because they do not cope with the data source heterogeneity that typifies such environments. In this work, we simulate the heterogeneity of real industry settings by introducing two extensions of the popular Spider benchmark dataset that require a combination of database and API calls. Then, we introduce a declarative approach to handling such data heterogeneity and demonstrate that it copes with data source heterogeneity significantly better than state-of-the-art LLM-based agentic or imperative code generation systems. Our augmented benchmarks are available to the research community.

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

↑