A Closed-Domain Natural Language Database Query System by LLMs
In this study, we have proposed an innovative database query system integrated with natural language processing capabilities of large language models (LLMs); in which, the privacy and public access problems are addressed by a local deployment. To confront the challenges of providing privacy protection and access controls commonly available in traditional database system, our system operates in a closed network environment. By combining prompt engineering with structured databases, it facilitates non-technical users with efficient complex data retrieval using natural language. The front-end interface, built with Streamlit, enhances usability, while Docker-based containerization ensures consistent deployment and maintenance. Performance evaluations using multiple benchmark datasets demonstrate that the proposed prompt strategies significantly improve SQL generation accuracy, confirming the system's practicality and flexibility across diverse application scenarios.
Authors
- Hung-Kuang Chen (ORCID: https://orcid.org/0000-0002-3994-9745)
- Yu Chen (ORCID: https://orcid.org/0000-0001-9459-9349)
- M. Huang
Institutions
- Taichung City Government (TW)
- National Chin-Yi University of Technology (TW)
Publication Details
- Published
- 2025-06-27
- DOI
- https://doi.org/10.1109/is3c65361.2025.11131102
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00