DBRouting: Routing End User Queries to Databases for Answerability
Preprint
Abstract
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.Keywords
All Related Versions
This publication has 8 references indexed in Scilit:
- Beyond Boundaries: A Human-like Approach for Question Answering over Structured and Unstructured Information SourcesTransactions of the Association for Computational Linguistics, 2024
- Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach2024
- SPAGHETTI: Open-Domain Question Answering from Heterogeneous Data Sources with Retrieval and Semantic Parsing2024
- DIVKNOWQA: Assessing the Reasoning Ability of LLMs via Open-Domain Question Answering over Knowledge Base and Text2024
- SEMQA: Semi-Extractive Multi-Source Question Answering2024
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks2019
- Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task2018
- Open Domain Question Answering Using Early Fusion of Knowledge Bases and Text2018