arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.12369cs.AI
收藏

RoundTable:利用动态模式和上下文自动补全增强表格问答中的查询精度

RoundTable: Leveraging Dynamic Schema and Contextual Autocomplete for Enhanced Query Precision in Tabular Question Answering

West Pharmaceutical Services, Inc.(韦斯特制药服务公司);Stanford University(斯坦福大学);Amazon GenAI(亚马逊生成式人工智能)

Pratyush Kumar, Kuber Vijaykumar Bellad, Bharat Vadlamudi, Aman Chadha

AI总结:

针对LLM在复杂数据集表格问答中难以准确识别列和值的问题,提出基于全文搜索和上下文自动补全的框架,缩小搜索空间并提升查询精度与交互体验。

摘要:

随着大型语言模型(LLMs)的进步,用纯英语查询数据库(即将用户问题转化为可执行的数据库查询)这一主要用例已出现并得到显著改善。然而,现实世界的数据集通常包含大量属性和复杂值,增加了LLM从自然语言查询中准确识别相关列或值的难度。传统方法无法将数据集的规模和复杂性完全传达给LLM。为应对这些挑战,我们提出了一种新框架,在输入表上利用全文搜索(FTS)。该方法不仅能精确检测特定值和列,还缩小了语言模型的搜索空间,从而提高了查询准确性。此外,它支持基于表中数据的自定义自动补全功能。这一整合显著优化了用户与复杂数据集的交互,为当前表格查询能力的局限性提供了高级解决方案。本研究还附带适用于Mac和Windows平台的应用程序,读者可自行在自己的数据上进行尝试。

英文摘要:

With advancements in Large Language Models (LLMs), a major use case that has emerged is querying databases in plain English, translating user questions into executable database queries, which has improved significantly. However, real-world datasets often feature a vast array of attributes and complex values, complicating the LLMs task of accurately identifying relevant columns or values from natural language queries. Traditional methods cannot fully relay the datasets size and complexity to the LLM. To address these challenges, we propose a novel framework that leverages Full-Text Search (FTS) on the input table. This approach not only enables precise detection of specific values and columns but also narrows the search space for language models, thereby enhancing query accuracy. Additionally, it supports a custom auto-complete feature that suggests queries based on the data in the table. This integration significantly refines the interaction between the user and complex datasets, offering a sophisticated solution to the limitations faced by current table querying capabilities. This work is accompanied by an application for both Mac and Windows platforms, which readers can try out themselves on their own data.

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

↑