Skip to content

Yashaswini-V21/Multi-Agent-Analysts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Python Streamlit Groq Agents License Stars


๐Ÿš€ Upload any CSV or Excel ยท Five AI agents fire in sequence

Clean ยท Analyze ยท Visualize ยท Report ยท Quality Gate โ€” Fully automated.


๐ŸŽฌ Watch the Working Demo

Watch Demo

AnalytIQ Demo

๐Ÿ’ก Tip: For the best experience, watch this demo in 720p HD โ€” click the gear icon โš™๏ธ on YouTube and select Quality โ†’ 720p.


Get Started ย  Roadmap


๐Ÿ“Œ Table of Contents


๐Ÿง  What is AnalytIQ?

AnalytIQ is a fully automated, multi-agent data analysis platform built with Streamlit and powered by Groq's LLaMA 3.3 70B.

You upload a file โ€” the platform does the rest.

A crew of five specialized AI agents fire in sequence, each passing a shared memory block to the next. By the time the Quality Gate agent finishes, you have:

  • โœ… A cleaned & profiled dataset
  • โœ… Statistical insights and patterns
  • โœ… Auto-generated interactive charts
  • โœ… A domain-framed executive report
  • โœ… A quality audit score with verdict
  • โœ… An SQL/DAX query optimizer (Groq-powered)
  • โœ… Full vs Lightning mode benchmarking and leaderboard scores
  • โœ… Async API jobs for long-running analysis
  • โœ… Versioned run artifacts for reproducibility

No data science experience required. No complex setup. Just upload and go.


๐Ÿ— System Architecture

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘                    AnalytIQ  v9.0                                โ•‘
โ•‘               Streamlit Dark-Mode Web Application                โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฆโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
                       โ•‘
       โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•ฌโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ–ผ               โ–ผ                      โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Data Layer โ”‚  โ”‚  Agent Layer    โ”‚  โ”‚     Query Lab        โ”‚
โ”‚             โ”‚  โ”‚  (Groq LLaMA)   โ”‚  โ”‚    (Groq LLaMA)      โ”‚
โ”‚ ยท DataProc  โ”‚  โ”‚                 โ”‚  โ”‚                      โ”‚
โ”‚   load CSV/ โ”‚  โ”‚  โ‘  Data Eng.   โ”‚  โ”‚  ยท SQL Optimizer     โ”‚
โ”‚   Excel     โ”‚  โ”‚        โ†“        โ”‚  โ”‚  ยท DAX Optimizer     โ”‚
โ”‚   clean     โ”‚  โ”‚  โ‘ก Analyst     โ”‚  โ”‚  ยท Auto-Generate     โ”‚
โ”‚   profile   โ”‚  โ”‚        โ†“        โ”‚  โ”‚    from schema       โ”‚
โ”‚   stats     โ”‚  โ”‚  โ‘ข Visualizer  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚             โ”‚  โ”‚        โ†“        โ”‚
โ”‚ ยท DataViz   โ”‚  โ”‚  โ‘ฃ Reporter    โ”‚
โ”‚   8 charts  โ”‚  โ”‚        โ†“        โ”‚
โ”‚   builder   โ”‚  โ”‚  โ‘ค Quality Gateโ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                          โ”‚  memory-linked pipeline
                          โ–ผ
             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
             โ”‚      Output Layer      โ”‚
             โ”‚  ยท Analysis insights   โ”‚
             โ”‚  ยท Executive report    โ”‚
             โ”‚  ยท QG verdict + score  โ”‚
             โ”‚  ยท Agent memory log    โ”‚
             โ”‚  ยท Plotly charts       โ”‚
             โ”‚  ยท JSON / TXT export   โ”‚
             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Data Flow

CSV / Excel  (or built-in demo dataset)
    โ”‚
    โ”œโ”€โ”€โ–ถ  utils/data_processor.py   โ”€โ”€โ–ถ  cleaned DataFrame + text profile
    โ”œโ”€โ”€โ–ถ  agents/crew_agents.py     โ”€โ”€โ–ถ  5-agent Groq pipeline
    โ”‚          Agent โ‘  โ†’ โ‘ก โ†’ โ‘ข โ†’ โ‘ฃ โ†’ โ‘ค Quality Gate
    โ”œโ”€โ”€โ–ถ  utils/visualizer.py       โ”€โ”€โ–ถ  Plotly interactive figures
    โ””โ”€โ”€โ–ถ  app.py  (Streamlit)       โ”€โ”€โ–ถ  rendered UI + download exports

๐Ÿค– Agent Pipeline

Five agents run in strict sequence. Each receives the full output of all prior agents via a shared memory block โ€” enabling chained, context-aware reasoning.

# Agent Role
โฌก 1 Data Engineer Validates, cleans nulls, detects types, writes data profile
โ—Ž 2 Data Analyst Statistical analysis โ€” patterns, correlations, outliers, anomalies
โ–ณ 3 Visualizer Generates Python/Plotly chart code and recommendations
โ–ซ 4 Report Writer Domain-framed executive report with key findings
๐Ÿ›ก 5 Quality Gate Audits every claim ยท issues PASS / WARN / FAIL verdict + score

Domain contexts: Finance ยท HR ยท Marketing ยท Healthcare ยท General

Each domain tunes every agent's system prompt for field-specific vocabulary, priority metrics, and framing.


โœจ Features

Module Details
๐Ÿ“‚ Upload CSV / Excel ยท auto-detect types ยท instant preview ยท session state
๐Ÿ” Profile Column stats ยท null analysis ยท type breakdown ยท distributions
๐Ÿ“Š Analytics Correlation matrix ยท segmentation ยท distribution ยท summary stats
๐Ÿ“ˆ Visualization 8 chart types ยท Chart Builder ยท Auto-Generate ยท Gallery
๐Ÿค– AI Engine 5-agent Groq pipeline ยท domain selector ยท memory log ยท QG verdict
โšก Lightning Mode Faster run mode for low-latency analysis workflows
๐Ÿงช Evaluation Lab Full vs Lightning benchmarking with composite score leaderboard
๐Ÿงต Async Jobs API Submit analysis jobs, poll status, fetch final result
๐Ÿ“ก Metrics API Run completion rate, verdict distribution, and latency summaries
๐Ÿ”ฌ Query Lab SQL optimizer ยท DAX optimizer ยท auto-generate queries (Groq)
๐Ÿ’พ Export .txt report ยท .json full export ยท audit .md ยท pipeline download
๐ŸŽฎ Demo Data HR Analytics ยท E-commerce ยท Finance Report (built-in, no upload needed)

๐ŸŽจ Design Highlights

  • Dark-mode only โ€” deep #0d0f14 background with glassmorphism cards
  • Inter + JetBrains Mono typography
  • Purple #7c6aff accent ยท Cyan #38bdf8 secondary
  • Page-transition flash animations on every navigation
  • Dot-bounce animated processing spinners
  • Ripple effects on nav buttons
  • Glowing animated progress bar during AI pipeline

โšก Quick Start

1. Clone & Install

git clone https://github.com/Yashaswini-V21/Multi-Agent-Analysts.git
cd Multi-Agent-Analysts
pip install -r requirements.txt

2. Configure API Keys

Create local env from template:

copy .env.example .env

Then edit .env:

# Required โ€” AI Engine + Query Lab
GROQ_API_KEY=gsk_...        # https://console.groq.com  (free)

# Optional โ€” model override
GROQ_MODEL=llama-3.3-70b-versatile

# Optional โ€” API protection
API_AUTH_ENABLED=false
API_AUTH_KEY=replace_with_strong_key

# Optional โ€” key rotation audit
KEY_ROTATED_AT=YYYY-MM-DDTHH:MM:SS+00:00

No API key? Upload โ†’ Profile โ†’ Analytics โ†’ Visualization all work without any key.

3. Run

python -m streamlit run app.py

Open http://localhost:8501 in your browser.

4. Run Backend API

python -m uvicorn api.server:app --host 0.0.0.0 --port 8000 --reload

Open http://localhost:8000/docs for API docs.

5. Docker (UI + API)

docker compose up --build

๐Ÿ”Œ API Endpoints

  • GET /health
  • GET /health/keys
  • POST /analyze
  • POST /evaluate
  • POST /jobs/analyze
  • GET /jobs/{job_id}
  • GET /jobs/{job_id}/result
  • GET /metrics/summary

If API auth is enabled, pass:

X-API-Key: <your_api_auth_key>

๐Ÿงช Evaluation & Benchmark

Run mode comparison (Full vs Lightning):

python main.py evaluate sample_data.csv --domain General --repeats 2 --modes full lightning

Generate benchmark evidence file:

python scripts/generate_benchmark_report.py --repeats 2 --modes full lightning

๐Ÿ“ Project Structure

Multi-Agent-Analysts/
โ”‚
โ”œโ”€โ”€ app.py                   # Streamlit app (~2800 lines)
โ”‚                            #  ยท CSS design system (Inter + JetBrains Mono)
โ”‚                            #  ยท All 7 page functions
โ”‚                            #  ยท Sidebar + navigation
โ”‚                            #  ยท Query Lab (Groq-powered)
โ”‚                            #  ยท Animation helpers
โ”‚
โ”œโ”€โ”€ agents/
โ”‚   โ”œโ”€โ”€ crew_agents.py       # 5 GroqAgent classes + DataAnalysisCrew
โ”‚   โ””โ”€โ”€ prompts.py           # System prompts & DOMAIN_CONTEXTS
โ”‚
โ”œโ”€โ”€ api/
โ”‚   โ””โ”€โ”€ server.py            # FastAPI endpoints
โ”‚
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ analysis_service.py  # Analysis orchestration
โ”‚   โ”œโ”€โ”€ evaluation_service.py# Evaluation and scoring
โ”‚   โ”œโ”€โ”€ job_service.py       # Async job queue and polling
โ”‚   โ”œโ”€โ”€ metrics_service.py   # Metrics summary generation
โ”‚   โ””โ”€โ”€ benchmark_service.py # Benchmark report generation
โ”‚
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ data_processor.py    # DataProcessor โ€” load, clean, profile
โ”‚   โ”œโ”€โ”€ visualizer.py        # DataVisualizer โ€” auto chart generation
โ”‚   โ”œโ”€โ”€ config.py            # Environment config
โ”‚   โ”œโ”€โ”€ telemetry.py         # Step timing telemetry
โ”‚   โ”œโ”€โ”€ artifacts.py         # Artifact persistence
โ”‚   โ”œโ”€โ”€ reproducibility.py   # Dataset fingerprint/schema snapshot
โ”‚   โ””โ”€โ”€ security.py          # Key rotation status checks
โ”‚
โ”œโ”€โ”€ tests/                   # Unit tests (API, pipeline, evaluation, security)
โ”œโ”€โ”€ scripts/
โ”‚   โ””โ”€โ”€ generate_benchmark_report.py
โ”‚
โ”œโ”€โ”€ outputs/
โ”‚   โ”œโ”€โ”€ charts/              # Saved chart exports
โ”‚   โ”œโ”€โ”€ data/                # Processed data exports
โ”‚   โ””โ”€โ”€ reports/             # Generated report files
โ”‚
โ”œโ”€โ”€ sample_data.csv          # Small sample dataset
โ”œโ”€โ”€ requirements.txt         # Python dependencies
โ””โ”€โ”€ .env                     # API keys  โ† gitignored

๐Ÿ—‚ Demo Datasets

Three built-in datasets โ€” no file upload needed. Click "Load Demo" on the Upload page.

Dataset Rows Domain Key Columns
๐Ÿ‘ฅ HR Analytics 200 HR Dept, Level, Age, Salary, Performance, Attrition
๐Ÿ›’ E-commerce Sales 200 Marketing Category, Region, Revenue, Status, Rating
๐Ÿ“ˆ Finance Report 96 Finance Month, Revenue, COGS, GrossProfit, EBITDA

๐Ÿงญ Navigation Flow

โ‘  Overview  โ†’  โ‘ก Upload  โ†’  โ‘ข Profile  โ†’  โ‘ฃ Analytics
                                                  โ†“
          โ‘ฆ Query Lab  โ†  โ‘ฅ AI Engine  โ†  โ‘ค Visualize
  • Every page has โ† Back and Forward โ†’ buttons at the bottom
  • Sidebar radio always reflects the current page and stays stable during widget interactions
  • Smooth slide-in animation on every page transition

๐Ÿ”‘ API Keys

Key Used For Get it Free
GROQ_API_KEY AI Engine (5-agent pipeline) + Query Lab console.groq.com
API_AUTH_KEY Optional protection for backend endpoints Set locally in .env

๐Ÿ”ฎ What's Coming Next

These features are actively planned and will ship in upcoming releases. โญ Star & watch the repo to get notified!

๐Ÿš€ Near-Term Releases

Feature Description
โ˜๏ธ Streamlit Cloud Deploy One-click public deployment โ€” try without any local setup
๐Ÿ“Š PowerBI Export Push charts and auto-generated DAX directly into Power BI
๐Ÿ—ฃ Voice-to-Query Speak your data question โ€” get SQL back instantly
๐Ÿ“‹ Multi-file Join Upload two CSVs and auto-merge on matching columns
๐Ÿ“ง Email Delivery Send the full analysis report straight to your inbox

๐ŸŒŸ Big Features on the Horizon

Feature Description
๐Ÿค Real-time Collaboration Share a session URL โ€” multiple analysts, one dataset
๐Ÿ—„ Database Connector Connect PostgreSQL / MySQL / BigQuery directly
๐Ÿ“ฑ Mobile Layout Full responsive design for phone & tablet
๐Ÿ”„ Scheduled Pipelines Run analysis automatically on a cron schedule
๐Ÿงฉ Plugin SDK Build and plug in your own custom agent

๐Ÿ”ฌ AI Upgrades Coming

Upgrade Details
๐Ÿ’ฌ Agentic Chat Ask follow-up questions about your data in natural language
๐Ÿ” Anomaly Detection Agent Dedicated ML-based outlier flagging with explanations
๐Ÿ“… Forecasting Agent Time-series prediction with confidence intervals
๐ŸŒ Multi-language Reports Generate analysis reports in 10+ languages
๐Ÿค– Model Selection Choose between Groq, GPT-4o, Claude 3.5 in settings

๐Ÿ“ฆ Requirements

streamlit       pandas          numpy
plotly          python-dotenv   groq
openpyxl        scipy

Full pinned versions in requirements.txt.


๐Ÿค Contributing

Contributions are very welcome!

# 1. Fork the repo on GitHub
# 2. Create your feature branch
git checkout -b feat/your-feature

# 3. Commit your changes
git commit -m "feat: add your feature"

# 4. Push and open a Pull Request
git push origin feat/your-feature

Please open an Issue first for large changes so we can discuss the approach.


๐Ÿ“„ License

MIT โ€” free to use, modify, and distribute.


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

Yashaswini V ยท @Yashaswini-V21


If AnalytIQ saved you time or impressed you โ€” please give it a โญ

Five AI agents. One upload. Infinite insights.

About

AnalytIQ - is a fully automated, multi-agent data analysis platform

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors