π AI-powered web application that converts natural language queries into executable SQL using Google Gemini.
IntelliSQL is an AI-driven system that enables users to interact with relational databases using plain English instead of SQL syntax.
The application uses Google Gemini 2.5 Flash to translate natural language into structured SQL queries, executes them on a SQLite database, and displays the results in a Streamlit web interface.
- π£ Natural Language to SQL Conversion
- π€ Google Gemini 2.5 Flash Integration
- π SQLite Database Execution
- π Structured Result Display using Pandas
- π₯ Multi-Page Streamlit Interface
- π Secure API Key Handling using .env
- π‘ SELECT Query Restriction for Safety
- π¦ Docker Deployment Ready
User (Browser) β Streamlit UI β get_response() β Gemini 2.5 Flash LLM β Generated SQL β read_query() β SQLite Database β Results Displayed in UI
- Programming Language: Python
- Web Framework: Streamlit
- LLM: Google Gemini 2.5 Flash
- Database: SQLite
- Data Handling: Pandas
- Containerization: Docker
- Version Control: Git & GitHub
IntelliSQL/ β βββ app.py βββ database.py βββ llm_engine.py βββ prompt_config.py βββ requirements.txt βββ Dockerfile βββ README.md βββ assets/
CREATE TABLE STUDENTS( NAME TEXT, CLASS TEXT, MARKS INTEGER, COMPANY TEXT );
git clone https://github.com/akhila2308/IntelliSQL.git
cd IntelliSQL2οΈβ£ Create Virtual Environment python -m venv venv venv\Scripts\activate
3οΈβ£ Install Dependencies pip install -r requirements.txt
4οΈβ£ Setup API Key API_KEY=A***************
βΆ Run Application streamlit run app.py
Access in browser: http://localhost:8501