An AI-powered system that generates SQL queries directly from natural language input, leveraging OpenAI's language model and a custom-trained model for accurate translation.
- 🗣️ Natural Language Input: Converts natural language questions and requests into SQL queries.
- 🤖 AI-Powered Translation: Utilizes OpenAI's language model and a custom-trained model for accurate translation from natural language to SQL.
- 💡 Intelligent Query Generation: Generates optimized SQL queries based on input context.
- 🔍 Query Execution: Executes generated SQL queries against a database and returns results.
- Python 3.8+
- OpenAI API key
-
Clone the repository:
git clone https://github.com/your-username/sql-query-builder-nlp.git cd sql-query-builder-nlp
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up your environment variables or update the
config.json
file with your API keys and database credentials.
-
Run the Application:
python app.py
-
Enter Natural Language Queries:
- Input your natural language questions or requests, and the system will generate and execute the corresponding SQL queries.
-
View Query Results:
- The results of the executed SQL queries will be displayed in the application interface.