# bhanupshahi/ai-powered-eda-report-generator architecture

> Architecture diagram of the GitHub repository bhanupshahi/ai-powered-eda-report-generator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bhanupshahi/ai-powered-eda-report-generator
- Repository: https://github.com/bhanupshahi/ai-powered-eda-report-generator

## Overview

This is a Streamlit and command-line application for analyzing uploaded or local CSV/Excel datasets, presenting EDA results, and generating an AI-written Markdown report. Users load a dataset, inspect quality and statistical analyses, optionally run grouped analysis and visualizations, assemble a JSON summary, then request and download a Gemini report. The CLI also saves summaries and reports to files. Edges reflect the shown orchestration and README capabilities; unsampled details are not inferred.

Main entry points: [`app.py`](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/app.py) (CLI Interface), [`streamlit_app.py`](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/streamlit_app.py) (Streamlit Interface), [`ai_report.py`](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/ai_report.py) (AI Report Generation), [`eda.py`](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py) (Dataset Loader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User Interfaces"]
  node_streamlit["Streamlit Interface<br/>[streamlit_app.py]"]
  node_cli["CLI Interface<br/>[app.py]"]
end

subgraph group_analysis["Dataset Analysis"]
  node_loader["Dataset Loader<br/>[eda.py]"]
  node_overview["Dataset Overview<br/>[eda.py]"]
  node_quality["Quality Checks<br/>[eda.py]"]
  node_statistics["Statistics and Outliers<br/>[eda.py]"]
  node_correlation["Correlation Analysis<br/>[eda.py]"]
  node_groupby["Grouped Analysis<br/>[eda.py]"]
  node_visuals["Visualizations<br/>[eda.py]"]
end

subgraph group_reporting["AI Reporting"]
  node_summary["JSON Summary<br/>[eda.py]"]
  node_ai_report["AI Report Generation<br/>[ai_report.py]"]
  node_report_download["Markdown Report Download<br/>[streamlit_app.py]"]
end

subgraph group_support["Configuration and Output"]
  node_config["Application Settings<br/>[config.py]"]
  node_file_helpers["File Output Helpers<br/>[utils.py]"]
end

node_user(("Dataset User"))
node_gemini{{"Google Gemini"}}

node_user -->|"uploads dataset"| node_streamlit
node_user -->|"selects dataset"| node_cli
node_streamlit -->|"loads dataset"| node_loader
node_cli -->|"loads dataset"| node_loader
node_streamlit -->|"builds overview"| node_overview
node_streamlit -->|"runs checks"| node_quality
node_streamlit -->|"runs analysis"| node_statistics
node_streamlit -->|"runs analysis"| node_correlation
node_streamlit -->|"runs analysis"| node_groupby
node_streamlit -->|"builds summary"| node_summary
node_cli -->|"builds overview"| node_overview
node_cli -->|"runs checks"| node_quality
node_cli -->|"runs analysis"| node_statistics
node_cli -->|"runs analysis"| node_correlation
node_cli -->|"runs analysis"| node_groupby
node_cli -->|"generates plots"| node_visuals
node_cli -->|"builds summary"| node_summary
node_summary -->|"provides summary"| node_ai_report
node_streamlit -->|"requests report"| node_ai_report
node_cli -->|"requests report"| node_ai_report
node_ai_report -->|"generates content"| node_gemini
node_streamlit -->|"offers download"| node_report_download
node_cli -->|"saves outputs"| node_file_helpers
node_ai_report -->|"reads settings"| node_config
node_loader -->|"reads defaults"| node_config
node_cli -->|"reads paths"| node_config

click node_streamlit "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/streamlit_app.py"
click node_cli "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/app.py"
click node_loader "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_overview "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_quality "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_statistics "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_correlation "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_groupby "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_visuals "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_summary "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py"
click node_ai_report "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/ai_report.py"
click node_report_download "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/streamlit_app.py"
click node_config "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/config.py"
click node_file_helpers "https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/utils.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_streamlit,node_cli,node_user toneBlue
class node_loader,node_overview,node_quality,node_statistics,node_correlation,node_groupby,node_visuals toneAmber
class node_summary,node_ai_report,node_report_download toneMint
class node_config,node_file_helpers toneRose
class node_gemini toneIndigo
```

## Components

### User Interfaces

- [Streamlit Interface](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/streamlit_app.py): `streamlit_app.py`
- [CLI Interface](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/app.py): `app.py`

### Dataset Analysis

- [Dataset Loader](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Dataset Overview](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Quality Checks](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Statistics and Outliers](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Correlation Analysis](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Grouped Analysis](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [Visualizations](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`

### AI Reporting

- [JSON Summary](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/eda.py): `eda.py`
- [AI Report Generation](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/ai_report.py): `ai_report.py`
- [Markdown Report Download](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/streamlit_app.py): `streamlit_app.py`

### Configuration and Output

- [Application Settings](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/config.py): `config.py`
- [File Output Helpers](https://github.com/bhanupshahi/ai-powered-eda-report-generator/blob/main/utils.py): `utils.py`

### Other components

- **Dataset User**
- **Google Gemini**

## Connections

- Dataset User → Streamlit Interface: uploads dataset (evidence: `README.md`)
- Dataset User → CLI Interface: selects dataset
- Streamlit Interface → Dataset Loader: loads dataset (evidence: `streamlit_app.py`)
- CLI Interface → Dataset Loader: loads dataset (evidence: `app.py`)
- Streamlit Interface → Dataset Overview: builds overview (evidence: `streamlit_app.py`)
- Streamlit Interface → Quality Checks: runs checks (evidence: `streamlit_app.py`)
- Streamlit Interface → Statistics and Outliers: runs analysis (evidence: `streamlit_app.py`)
- Streamlit Interface → Correlation Analysis: runs analysis (evidence: `streamlit_app.py`)
- Streamlit Interface → Grouped Analysis: runs analysis (evidence: `streamlit_app.py`)
- Streamlit Interface → JSON Summary: builds summary (evidence: `streamlit_app.py`)
- CLI Interface → Dataset Overview: builds overview (evidence: `app.py`)
- CLI Interface → Quality Checks: runs checks (evidence: `app.py`)
- CLI Interface → Statistics and Outliers: runs analysis (evidence: `app.py`)
- CLI Interface → Correlation Analysis: runs analysis (evidence: `app.py`)
- CLI Interface → Grouped Analysis: runs analysis (evidence: `app.py`)
- CLI Interface → Visualizations: generates plots (evidence: `app.py`)
- CLI Interface → JSON Summary: builds summary (evidence: `app.py`)
- JSON Summary → AI Report Generation: provides summary (evidence: `streamlit_app.py`)
- Streamlit Interface → AI Report Generation: requests report (evidence: `streamlit_app.py`)
- CLI Interface → AI Report Generation: requests report (evidence: `app.py`)
- AI Report Generation → Google Gemini: generates content (evidence: `ai_report.py`)
- Streamlit Interface → Markdown Report Download: offers download (evidence: `streamlit_app.py`)
- CLI Interface → File Output Helpers: saves outputs (evidence: `app.py`)
- AI Report Generation → Application Settings: reads settings (evidence: `ai_report.py`)
- Dataset Loader → Application Settings: reads defaults (evidence: `eda.py`)
- CLI Interface → Application Settings: reads paths (evidence: `app.py`)
