DBRouting: Routing End User Queries to Databases for Answerability

Priyangshu Mandal, Manasi Patwardhan, Mayur Patidar, Lovekesh Vig
1/27/2025
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mandal2025dbrouting,
  title  = {DBRouting: Routing End User Queries to Databases for Answerability},
  author = {Priyangshu Mandal and Manasi Patwardhan and Mayur Patidar and Lovekesh Vig},
  year   = {2025},
  eprint = {2501.16220},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.16220v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.16220.svg)](https://codeofpaper.com/paper/2501.16220)

Discussion