I built a lightweight AI assistant using Gemini Pro and Streamlit that allows you to explore a global economic dataset using plain Englishโno SQL required!
๐ง What It Does
- Converts natural language questions into SQL queries using Gemini
- Runs the query on a local SQLite database
- Returns real-time results as a DataFrame
- Maintains a sidebar question history log for traceability
๐ Dataset
- Global Economic Indicators (2010โ2025)
- Sourced from: Kaggle
๐ก Example Questions
- Top 5 countries with highest GDP in 2020
- Show inflation rate of India from 2015 to 2022
- Compare public debt between United States and China
๐ง Tech Stack
- ๐ Python (3.10+)
- ๐ Streamlit for the web interface
- ๐๏ธ SQLite for database
- ๐ค Google Generative AI (Gemini 1.5) for NL-to-SQL
- ๐ฆ Pandas for data processing
๐ Try It Out
Top comments (0)