Inspiration

We realized a simple truth: People have questions. Databases have answers. But SQL stands in the way.

Managers, founders, researchers, and students struggle with data because tools are too technical. So we asked:

"What if anyone could talk to their data in plain English?"

That idea became SchemaX — a conversational analytics assistant powered by Gemini.

What it does

SchemaX lets users query and visualize their data using natural language.

  • Ask a question → Gemini interprets it
  • Schema-aware SQL is generated
  • The database executes
  • Results come back as charts & insights

No SQL. No dashboards. Just answers.

How we built it

  • Frontend: Conversational UI with real-time visualizations
  • Backend: FastAPI pipeline for query handling & SQL validation
  • AI Engine: Google Gemini for intent detection, RAG-based schema grounding, and SQL generation
  • Database: Stores structured data and executes generated queries

Flow:

User question → Gemini intent → RAG schema → SQL → Execution → Visualization

Challenges we ran into

  • Gemini occasionally hallucinated column names → Fixed with schema-grounded RAG
  • Ambiguous questions needed clarification → Added multi-turn logic
  • SQL performance bottlenecks → Optimized queries and caching
  • Handling varied natural language styles → Improved intent detection

Accomplishments that we're proud of

  • Built a full natural-language-to-SQL system
  • Achieved high SQL accuracy using Gemini + RAG
  • Designed a smooth conversational analytics experience
  • Enabled non-technical users to explore data independently

What we learned

  • How to safely integrate Gemini with relational databases
  • How RAG boosts factual correctness
  • How to handle ambiguity in user queries
  • How to optimize both AI inference and SQL performance

What's next for SchemaX

  • Voice-based data querying
  • Multi-language support
  • Auto-generated dashboards
  • Predictive & anomaly insights
  • Support for more databases

Our goal is simple: Make data accessible to everyone — instantly.

Built With

Share this project:

Updates