Thameur Portfolio

Plotly AI Graph Builder πŸ“Š

June 15, 2024 (7mo ago)

πŸ€– An interactive web app that leverages AI and Plotly to create stunning data visualizations from natural language descriptions.

πŸ’» Source CodeΒ Β β€’Β  🌏 WebsiteΒ Β β€’Β 
Plotly AI Graph Builder: AI-Driven Data Visualizations
Plotly AI Graph Builder: AI-Driven Data Visualizations

Plotly AI Graph Builder: AI-Driven Data Visualizations
Plotly AI Graph Builder: AI-Driven Data Visualizations

πŸ“ Abstract

Plotly AI Graph Builder is an intelligent application that combines Dash, LLaMA, and Plotly to transform natural language inputs into interactive data visualizations. Upload your datasets, describe your desired charts in plain English, and let the AI do the rest!

🌟 Features

  • AI-Powered Visualization: Uses LLaMA 3 70B for natural language processing and Plotly for interactive visualizations.
  • File Upload Support: Accepts CSV and Excel files.
  • Automatic Data Insights: Provides dataset statistics and previews.
  • Context-Aware Requests: Maintains conversation history for better context understanding.
  • Interactive UI: Responsive design with a modern aesthetic.
  • Data Cleaning and Processing: Ensures clean, structured, and error-free visualizations.

πŸš€ Getting Started

Prerequisites

  • Python 3.7+
  • Groq API Key

Installation

  1. Clone the repository:
git clone https://github.com/verus56/plotly-ai-graph-builder.git cd plotly-ai-graph-builder
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up environment variables:

Create a .env file in the root directory and add your Groq API key:

GROQ_API_KEY=your_api_key_here

Running the App

python app.py

Visit http://localhost:8009 to access the application.

πŸ€– How It Works

  1. Upload your dataset (CSV/Excel).
  2. Describe the visualization you want in plain English.
  3. The AI processes your request, generates the necessary Plotly code, and renders the visualization.

πŸ“Š Technical Stack

  • Frontend: Dash
  • AI Engine: LLaMA 3 70B via Groq
  • Visualization: Plotly
  • Data Processing: Pandas
  • Interactive Grid: Dash AG Grid

πŸ› οΈ Deployment

  • Docker:

    docker build -t plotly-graph-builder:latest . docker run -d -p 8009:8009 plotly-graph-builder:latest
  • Cloud options: AWS, GCP, Azure

πŸ“ License

Released under the MIT License.

πŸ“² Contact

Made with ❀️ by V56