Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 InsightSQL

Natural Language to SQL Analytics Agent

InsightSQL is an AI-powered analytics application that enables users to query a relational e-commerce database using natural language.

Instead of manually writing SQL queries, users can ask questions such as:

"What are the top 5 product categories by revenue?"

The system uses Google Gemini to interpret the user's question, generate a SQL query based on the database schema, execute the query through a controlled read-only SQL tool, and convert the resulting data into a concise natural-language response.

The project demonstrates the integration of Generative AI, Natural Language Interfaces, SQL, Relational Databases, Data Analytics, and SQL execution security in an agent-based architecture.


Overview

Traditional database analytics requires users to understand SQL and the underlying database schema.

InsightSQL provides a natural-language interface over a relational database:

Natural Language Question
          │
          ▼
   Google Gemini
          │
          ▼
    SQL Generation
          │
          ▼
   SQL Safety Layer
          │
          ▼
    SQLite Database
          │
          ▼
     Query Result
          │
          ▼
   Gemini Interpretation
          │
          ▼
   Natural Language Answer

About

AI-powered natural language-to-SQL analytics agent with secure read-only database execution.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages