- Description: Built a complete Text-to-SQL application that converts natural language queries into executable SQL using an LLM.
- Workflow:
- Created a student marks database using SQLite3
- Accepts natural language queries from users
- Uses Gemini LLM to translate text into SQL queries
- Executes SQL on the database
- Returns structured and readable results
- Goal: Simplify database interaction for non-technical users using natural language
- Expected Output: Accurate SQL queries and clean result presentation through a web interface
- Key Metrics:
- β‘ Reduced query writing effort by 80%
- π― Achieved 90%+ SQL query accuracy
- β±οΈ Delivered query results in <2 seconds latency
- π Improved accessibility for non-SQL users by 3x
- π Seamless text-to-SQL conversion
- π§ Context-aware query understanding using LLM
- π» Interactive and user-friendly web interface
- π Clean and structured output display
- π Real-time query processing
- LLM: Google Gemini
- Database: SQLite3
- Frontend / Deployment: Streamlit
- Approach: Prompt engineering + LLM-based query generation + database execution pipeline
Run the app locally: