Large Language Model – Based Query Generation

Main Article Content

Prof.Vinay.S. Nalawade
Shubham Kolase
Shital Devkar
Dnyaneshwari Patil

Abstract

The proposed to is designed to Retrieving information from relational databases typically requires proficiency in Structured Query Language (SQL). However, non-technical users often lack the necessary expertise to construct accurate SQL queries, creating a barrier to effective data access. To address this challenge, this paper proposes an LLM-based Query Generation System that translates natural language prompts into executable SQL queries. The system leverages pretrained large language models (LLMs), such as those developed by OpenAI, enhanced with schema-aware prompt engineering to ensure the generated queries align with the underlying database schema. Unlike traditional methods based on keyword matching, template filling, or handcrafted rules, the proposed system adapts flexibly across diverse domains and query structures.


A prototype implementation demonstrates how non-technical users can interact with databases by formulating requests in plain English. The system will automatically generate the corresponding SQL query with correct joins, filtering, and ordering clauses. This approach reduces dependency on database experts, enhances accessibility, and improves productivity in organizations where timely data retrieval is essential.

Article Details

How to Cite
Nalawade, P., Kolase, S., Devkar, S., & Patil, D. (2025). Large Language Model – Based Query Generation. International Journal on Advanced Computer Theory and Engineering, 14(1), 677–680. https://doi.org/10.65521/ijacte.v14i1.795
Section
Articles

Similar Articles

<< < 4 5 6 7 8 9 

You may also start an advanced similarity search for this article.