Skip to content

An AI-powered SQL analyst that converts natural language queries into SQL and visualizes results.

License

EloiRamos/mini-sql-analyst

Repository files navigation

🧠 Mini-SQL Analyst

An AI-powered SQL analyst that converts natural language queries into SQL and visualizes results.

This project demonstrates how to build a smart agent using LangChain, LangGraph, and OpenAI, which understands English questions, translates them into SQL, runs them on a local SQLite database, and returns both raw data and charts.


🧩 Features

  • ✅ Natural Language → SQL query conversion
  • ✅ Execution on a local SQLite database
  • ✅ Result visualization (bar charts)
  • ✅ Streamlit-based web interface
  • ✅ Modular code structure (agent.py, db_utils.py, visualizer.py)

🔧 Technologies Used


📦 Installation

Make sure you have Python 3.9+ installed.

  1. Clone the repo:
    git clone https://github.com/EloiRamos/mini-sql-analyst.git
    cd mini-sql-analyst

About

An AI-powered SQL analyst that converts natural language queries into SQL and visualizes results.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages