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)