Revolutionizing Database Q&A with Large Language Models: Comprehensive Benchmark and Evaluation
The development of Large Language Models (LLMs) has revolutionized QA across various industries, including the database domain. However, there lacks a thorough evaluation regarding the capabilities of different LLMs in database QA. To this end, we introduce DQABench, the first comprehensive database QA benchmark for LLMs. DQABench features an innovative LLM-based method to automate the generation, cleaning, and rewriting of evaluation dataset, resulting in over 200,000 QA pairs in English and Chinese. These QA pairs cover a wide range of database-specific knowledge extracted from manuals, online communities, and DB instances, allowing for assessment of LLMs' Retrieval-Augmented Generation (RAG) and Tool Invocation Generation (TIG) capabilities in the database QA task. Furthermore, we propose a highly modular and scalable testbed DQATestbed, with basic and advanced components such as Fine-tuning, Question Classification Routing (QCR), RAG, TIG, and Prompt Template Engineering (PTE). Finally, we provide an evaluation pipeline that computes various metrics throughout a standardized evaluation process to ensure the accuracy and fairness. Our evaluation reveals the strengths and limitations of nine open-source and commercial LLMs, and the impact of various service components (e.g., fine-tuning, QCR, RAG, TIG). The proposed benchmark dataset is available at https://github.com/XMUDM/DQABench.
Authors
- Zhenghao Lin (ORCID: https://orcid.org/0009-0007-1679-0712)
- Xuanhe Zhou (ORCID: https://orcid.org/0000-0002-2285-7836)
- Jinsong Su (ORCID: https://orcid.org/0000-0001-5606-7122)
- Yihang Zheng (ORCID: https://orcid.org/0009-0005-9277-3661)
- Guoliang Li (ORCID: https://orcid.org/0000-0002-1398-0621)
- Chen Lin (ORCID: https://orcid.org/0000-0002-2275-997X)
- Yi Luo
- Bo Li (ORCID: https://orcid.org/0000-0002-8256-8753)
Institutions
- Shanghai Jiao Tong University (CN)
- Xiamen University (CN)
- Tsinghua University (CN)
Publication Details
- Published
- 2025-08-03
- DOI
- https://doi.org/10.1145/3711896.3737405
- Primary Topic
- Scientific Computing and Data Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China