Skip to content

akshay-kumar-bm/AutoInsight-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ AutoInsight AI

Enterprise-Grade Intelligent Multi-Agent Data Analytics Platform Transform natural language into actionable data insights with collaborative AI agents, real-time streaming, and interactive visualizations.

Python FastAPI Streamlit Docker Live Demo


๐Ÿ“‘ Table of Contents


๐Ÿ“Œ Overview

AutoInsight AI democratizes data analytics by enabling anyone to query databases, analyze datasets, and generate visualizations with natural language conversations.

  • Multi-agent orchestration with AutoGen
  • Real-time Python execution in Docker
  • Natural language โ†’ SQL conversion
  • Interactive visualizations with AI-driven charting
  • FastAPI REST API + Streamlit web apps + HTML5 frontend

๐ŸŽฌ Live Demo & Screenshots

๐ŸŒ Try It Live

๐Ÿš€ Interactive Demo

๐Ÿ“ธ Screenshots

Data Analysis Agent

Data Analysis Interface

Database Analytics Agent

Database Analytics Interface

๐Ÿ“น Video Demonstrations

  • ๐Ÿ—„๏ธ Database Analytics: Demo
  • ๐Ÿ“Š Data Analysis: Demo

โšก Quick Start

๐Ÿ”น Local Setup

git clone https://github.com/akshaykumarbedre/AutoInsight-AI.git
cd AutoInsight-AI
python -m venv venv
source venv/bin/activate  # (Windows: venv\Scripts\activate)
pip install -r requirements.txt
cp .env.example .env

Update .env with your OpenAI API key.

Run:

python app_fastapi.py

Visit: http://localhost:8080

๐Ÿ”น Docker Setup

docker build -t autoinsight-ai .
docker run -p 5001:5001 --env-file .env autoinsight-ai

Visit: http://localhost:5001


โœจ Core Features

  • ๐Ÿค– Multi-Agent Teams โ€“ SQL, visualization, code execution, and human-in-the-loop agents
  • ๐Ÿ’ฌ Natural Language Queries โ€“ Convert plain English into SQL and insights
  • ๐Ÿ“Š Intelligent Visualizations โ€“ Auto-generate bar, line, scatter, pie, and histogram charts
  • ๐Ÿณ Secure Execution โ€“ Docker-isolated Python runtime for safe code execution
  • ๐Ÿ”„ Real-Time Streaming โ€“ Asynchronous communication with progress tracking
  • ๐ŸŒ Multiple Interfaces โ€“ FastAPI APIs, Streamlit apps, modern web UI

๐Ÿ— Architecture

AutoInsight-AI/
โ”œโ”€โ”€ ๐ŸŒ Frontend & Templates
โ”‚   โ”œโ”€โ”€ templates/                   # HTML5 web interfaces
โ”‚   โ”‚   โ”œโ”€โ”€ index.html              # Professional homepage & portfolio
โ”‚   โ”‚   โ”œโ”€โ”€ dataanalyst.html        # Data analysis interface
โ”‚   โ”‚   โ”œโ”€โ”€ database.html           # Database analytics interface
โ”‚   โ”‚   โ””โ”€โ”€ visualization.html      # Visualization studio
โ”‚   โ””โ”€โ”€ streamlit/                  # Streamlit applications
โ”‚       โ”œโ”€โ”€ Dataabase_agent_streamlit.py    # Database UI
โ”‚       โ””โ”€โ”€ Data_anaylis_agent_streamlit.py # Analysis UI
โ”œโ”€โ”€ ๐Ÿš€ Core Application
โ”‚   โ”œโ”€โ”€ app_fastapi.py              # Main FastAPI server with all APIs
โ”‚   โ”œโ”€โ”€ requirements.txt            # Production dependencies
โ”‚   โ”œโ”€โ”€ Dockerfile                  # Container deployment config
โ”‚   โ””โ”€โ”€ .env.example               # Environment configuration template
โ”œโ”€โ”€ ๐Ÿค– Agent System
โ”‚   โ”œโ”€โ”€ agent/                      # Specialized AI agents
โ”‚   โ”‚   โ”œโ”€โ”€ database_agent.py       # SQL query generation agent
โ”‚   โ”‚   โ”œโ”€โ”€ visualization_agent.py  # Chart creation agent  
โ”‚   โ”‚   โ”œโ”€โ”€ dataanalsys_agent.py   # Data analysis expert agent
โ”‚   โ”‚   โ”œโ”€โ”€ code_excuter_agent.py  # Docker code execution agent
โ”‚   โ”‚   โ””โ”€โ”€ human_agent.py         # Human-in-the-loop agent
โ”‚   โ””โ”€โ”€ teams/                      # Multi-agent orchestration
โ”‚       โ””โ”€โ”€ team_manager.py        # RoundRobinGroupChat coordination
โ”œโ”€โ”€ ๐Ÿ› ๏ธ Tools & Execution
โ”‚   โ”œโ”€โ”€ tool/                       # Specialized tool implementations
โ”‚   โ”‚   โ”œโ”€โ”€ plotting.py            # 5+ visualization tools (Matplotlib/Plotly)
โ”‚   โ”‚   โ”œโ”€โ”€ docker_executer.py     # Secure containerized code execution
โ”‚   โ”‚   โ””โ”€โ”€ sql_tool_kit.py        # LangChain SQL database tools
โ”‚   โ””โ”€โ”€ util/                       # Utility functions & streaming
โ”‚       โ”œโ”€โ”€ stream_handler.py       # Real-time conversation streaming
โ”‚       โ”œโ”€โ”€ display_helper.py       # UI display utilities
โ”‚       โ””โ”€โ”€ stream_data_anaylisi.py # Data analysis streaming handlers
โ”œโ”€โ”€ ๐Ÿ—„๏ธ Data & Configuration  
โ”‚   โ”œโ”€โ”€ config/                     # Environment & model configuration
โ”‚   โ”‚   โ””โ”€โ”€ settings.py            # OpenAI client & model settings
โ”‚   โ”œโ”€โ”€ database/                   # Database management
โ”‚   โ”‚   โ”œโ”€โ”€ db_manager.py          # SQLite connection & toolkit
โ”‚   โ”‚   โ””โ”€โ”€ ecommerce.db           # Sample e-commerce database
โ”‚   โ”œโ”€โ”€ coding/                     # User uploaded data files
โ”‚   โ”‚   โ”œโ”€โ”€ *.csv, *.json, *.xlsx  # Analysis datasets
โ”‚   โ”‚   โ””โ”€โ”€ *.pkl                  # Trained ML models
โ”‚   โ””โ”€โ”€ plots/                      # Generated visualizations
โ”‚       โ””โ”€โ”€ *.png                  # Chart exports & images
โ”œโ”€โ”€ ๐Ÿงช Development & Notebooks
โ”‚   โ”œโ”€โ”€ notebook/                   # Jupyter development notebooks
โ”‚   โ”‚   โ”œโ”€โ”€ *.ipynb                # Experimental agent workflows
โ”‚   โ”‚   โ””โ”€โ”€ demo.py                # Interactive demonstrations
โ”‚   โ””โ”€โ”€ __pycache__/               # Compiled Python modules
โ””โ”€โ”€ ๐Ÿ“„ Documentation
    โ”œโ”€โ”€ README.md                   # Comprehensive documentation
    โ”œโ”€โ”€ autoinsight_server.log      # Application logging
    โ””โ”€โ”€ .gitignore                 # Version control configuration<!-- Replace ASCII with a diagram image -->

๐Ÿ›  Technology Stack

  • AI & Agents: AutoGen, LangChain, OpenAI GPT-4o-mini
  • Backend: FastAPI, WebSockets, Uvicorn
  • Frontend: Streamlit, HTML5, CSS3, JS
  • Visualization: Pandas, Matplotlib, Plotly, Seaborn
  • Infrastructure: Docker, SQLite, SQLAlchemy

๐ŸŽฎ Usage

Once running, access the platform at http://localhost:8080:

  • ๐Ÿ—„๏ธ Database Analytics โ†’ Query databases in natural language
  • ๐Ÿ“Š Data Analysis โ†’ Upload CSV/Excel/JSON and run Python analysis
  • ๐Ÿ“ˆ Visualization Studio โ†’ Generate charts and dashboards

Example queries:

"Show top 10 customers by total order value"
"Create a correlation matrix heatmap"
"Predict sales trends with a regression model"

๐Ÿค Contributing

  1. Fork the repo
  2. Create a branch: git checkout -b feature/my-feature
  3. Commit changes: git commit -m 'Add my feature'
  4. Push: git push origin feature/my-feature
  5. Open a Pull Request

๐Ÿ‘‰ Follow PEP 8, add docstrings, and include tests.


๐Ÿ“„ License

This project is licensed under the MIT License - see LICENSE.


๐Ÿ‘จโ€๐Ÿ’ป Author

Akshay Kumar BM Senior Software Engineer & AI/ML Specialist


โญ If you find this project useful, donโ€™t forget to star the repo!

Built with โค๏ธ for the data science & AI community

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors