|
Download README.md from jkbytecrafter/autonomous-data-analyst: direct link, hf CLI and curl.
- Browser
- Download file 5.69 kB
-
https://huggingface.co/spaces/jkbytecrafter/autonomous-data-analyst/resolve/main/README.md
- Command line
-
hf download hf://spaces/jkbytecrafter/autonomous-data-analyst/README.md
-
curl -L -o README.md https://huggingface.co/spaces/jkbytecrafter/autonomous-data-analyst/resolve/main/README.md
5.69 kB
metadata
title: Autonomous Data Analyst
emoji: π€
colorFrom: blue
colorTo: purple
sdk: docker
app_port: 7860
pinned: false
π€ Autonomous Data Analyst
An AI-Powered, End-to-End Data Science Platform that automates data cleaning, exploratory data analysis, machine learning, and business insight generation β powered by LLMs (Gemini, OpenAI, Anthropic).
π Features
| Feature | Description |
|---|---|
| π₯ Data Ingestion | Upload CSV, Excel, or JSON files via UI or API |
| π§Ή Intelligent Cleaning | Auto-handles missing values, outliers, encoding & scaling |
| π Automated EDA | Rich Plotly dashboards, correlation matrices, distribution plots |
| π€ AutoML Pipeline | Auto-detects classification/regression, trains & compares multiple models |
| π‘ AI Insights | LLM-powered business insight generation (Gemini / OpenAI) |
| π¬ Chat with Data | Natural language querying via LangChain code-generation |
| π Report Generation | Auto-generated PDF/HTML analysis reports |
| π REST API | Full FastAPI backend for programmatic access |
ποΈ Architecture
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Streamlit Frontend (app.py) β
β Upload β EDA β AutoML β Insights β Chat β
ββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β HTTP
ββββββββββββββββββββΌβββββββββββββββββββββββββββββββ
β FastAPI Backend (app/backend/) β
β /upload /eda /automl /insights /chat β
ββββββββ¬βββββββββββ¬βββββββββββ¬ββββββββββββ¬βββββββββ
β β β β
app/utils app/eda app/automl app/insights
(cleaning) (plots) (PyCaret) (LangChain)
(Gemini/GPT)
π Quickstart
Prerequisites
- Python 3.10+
- A Gemini API Key (free at aistudio.google.com) or OpenAI API Key
1. Clone the Repository
git clone https://github.com/<your-username>/autonomous-data-analyst.git
cd autonomous-data-analyst
2. Create a Virtual Environment
python -m venv venv
# Windows
.\venv\Scripts\activate
# macOS / Linux
source venv/bin/activate
3. Install Dependencies
pip install -r requirements.txt
4. Configure Environment Variables
cp .env.example .env
Edit .env and add your API key:
GEMINI_API_KEY=your-gemini-api-key
# Or use OpenAI:
# OPENAI_API_KEY=your-openai-api-key
5. Run the Application
Option A β Streamlit UI only:
streamlit run app.py
Option B β With FastAPI Backend:
# Terminal 1
uvicorn app.backend.main:app --reload
# Terminal 2
streamlit run app.py
- UI: http://localhost:8501
- API Docs: http://localhost:8000/docs
6. Run the Demo Pipeline
python demo_pipeline.py
π³ Docker Compose
docker-compose up --build
- UI:
http://localhost:8501 - API:
http://localhost:8000/docs
π Project Structure
autonomous-data-analyst/
βββ app.py # Streamlit frontend entrypoint
βββ demo_pipeline.py # End-to-end demo script
βββ requirements.txt
βββ docker-compose.yml
βββ .env.example
β
βββ app/
β βββ backend/ # FastAPI routes & API logic
β β βββ api/ # Endpoint modules (automl, eda, etc.)
β βββ automl/ # AutoML engine (PyCaret wrapper)
β βββ eda/ # EDA report generation
β βββ insights/ # LLM insight generation (LangChain)
β βββ llm/ # LLM provider abstraction (Gemini/OpenAI)
β βββ models/ # Saved ML model artifacts
β βββ reports/ # Report generation logic
β βββ ui/ # Streamlit UI components
β βββ utils/ # Data ingestion, cleaning helpers
β βββ visualization/ # Plotly chart builders
β
βββ configs/ # YAML configuration files
βββ datasets/ # Sample datasets
βββ notebooks/ # Exploration notebooks
βββ tests/ # Unit & integration tests
π οΈ Tech Stack
| Layer | Technology |
|---|---|
| Frontend | Streamlit |
| Backend | FastAPI |
| AutoML | PyCaret, Scikit-learn |
| LLM / AI | LangChain, Google Gemini, OpenAI |
| Visualizations | Plotly, Matplotlib, Seaborn |
| Data | Pandas, NumPy |
| Containerization | Docker, Docker Compose |
π License
This project is licensed under the MIT License β see the LICENSE file for details. "# Autonomous-Data-Analyst"