arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2501.16220cs.CL
收藏

DBRouting:将终端用户查询路由至数据库以实现可回答性

DBRouting: Routing End User Queries to Databases for Answerability

Indian Institute of Technology Kharagpur(印度理工学院卡拉格普尔分校);TCS Research(TCS研究中心)

Priyangshu Mandal, Manasi Patwardhan, Mayur Patidar, Lovekesh Vig

AI总结:

本研究定义了将终端用户查询路由至数据库的新任务,通过扩展NL-to-SQL数据集构建基线,发现开源LLM优于嵌入方法但受token限制,并指出数据源数量、领域相似性等因素增加任务难度,需更复杂解决方案。

摘要:

企业级数据通常分布在多个来源中,识别包含知识请求相关信息的数据源集合是一项基本挑战。在本研究中,我们定义了将终端用户查询路由到适当数据源的新任务,其中数据源为数据库。我们通过扩展为NL-to-SQL语义解析设计的现有数据集来合成数据集。我们在这些数据集上创建基线,使用开源LLM,并使用预训练和任务特定嵌入(通过训练数据微调)两种方法。通过这些基线,我们证明开源LLM比基于嵌入的方法表现更好,但受限于token长度限制。基于嵌入的方法受益于任务特定微调,尤其在有数据库特定问题作为训练数据时效果更显著。我们进一步发现,该任务的难度会随以下因素增加:(i)数据源数量增加;(ii)数据源在领域上更接近;(iii)数据库缺乏解释其实体所需的外部领域知识;(iv)查询具有歧义和复杂性,需要对数据源更细粒度的理解或逻辑推理才能路由到适当来源。这表明需要开发更复杂的解决方案来更好地应对该任务。

英文摘要:

Enterprise level data is often distributed across multiple sources and identifying the correct set-of data-sources with relevant information for a knowledge request is a fundamental challenge. In this work, we define the novel task of routing an end-user query to the appropriate data-source, where the data-sources are databases. We synthesize datasets by extending existing datasets designed for NL-to-SQL semantic parsing. We create baselines on these datasets by using open-source LLMs, using both pre-trained and task specific embeddings fine-tuned using the training data. With these baselines we demonstrate that open-source LLMs perform better than embedding based approach, but suffer from token length limitations. Embedding based approaches benefit from task specific fine-tuning, more so when there is availability of data in terms of database specific questions for training. We further find that the task becomes more difficult (i) with an increase in the number of data-sources, (ii) having data-sources closer in terms of their domains,(iii) having databases without external domain knowledge required to interpret its entities and (iv) with ambiguous and complex queries requiring more fine-grained understanding of the data-sources or logical reasoning for routing to an appropriate source. This calls for the need for developing more sophisticated solutions to better address the task.

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

↑