Adrib1dl/retail-analytics-dashboard
0
AI-Augmented Retail Analytics Dashboard
Imperial College Retail & Marketing Analytics group project — an interactive Python (Gradio) dashboard combining ML outputs, statistical analytics, and a grounded GenAI layer.
Quick start
pip install -r requirements.txt
python -m dashboard.app.mainOpen the URL printed in the terminal (default http://127.0.0.1:7860).
LLM provider (optional)
Set environment variables for live AI (otherwise echo/offline fallback):
# Ollama (local)
set LLM_PROVIDER=ollama
# AWS Bedrock
set LLM_PROVIDER=bedrockSee ai/CLOUD_SETUP.md for full configuration.
Modules
Project structure
data/ # Raw CSV (read-only)
dashboard/ # Gradio app + analytics layer
ml/ # Notebooks and model outputs
ai/ # Prompts, guardrails, LLM services
docs/ # Assignment spec and team rulesGenerate ML outputs
Promotion lift (Modules 3 & 7):
# Run notebook: ml/ml_promotions_pricing/promotion_lift_model.ipynbForecasting (Module 6) auto-generates a baseline on first load; replace with ml/ml_forecasting/forecasting.ipynb outputs when ready.
Documentation
- Full deliverable spec:
docs/deliverable.md - Team rules:
docs/rules.md - Dashboard plan:
dashboard/PLAN.md
