How jackoturner/ai_implementation_and_impact_module works
This is a three-class e-commerce review sentiment project: reviews are prepared and labeled, sampled for modeling, and served by a Linear SVM prediction API with a Streamlit dashboard. The principal runtime path is dashboard sign-in and review entry → API prediction → model result; analytics use a separate API endpoint. The README documents notebook-based model training and evaluation, but notebook internals were not sampled, so those links are omitted. The graph reflects shown calls and documented capabilities only.
Main entry points: dashboard.py Streamlit dashboard · main.py FastAPI endpoints · prepare_dataset.py Dataset preparation · create_model_sample.py Model sampling
Components 17
Review preparation
- Raw reviews
data/raw/Video_Games_5.json.gz - Raw review loader
src/data/load_raw_reviews.py - Review cleaner
src/data/clean_reviews.py - Sentiment labels
src/data/create_labels.py - Dataset preparation
src/data/prepare_dataset.py - Clean labeled data
data/processed/video_games_reviews_cleaned.csv - Model sampling
src/data/create_model_sample.py - Model sample
data/processed - Model training and evaluation
notebooks
Prediction service
- Saved SVM pipeline
- FastAPI endpoints
app/api/main.py - Sentiment prediction
app/api/main.py - Model metrics
app/api/metrics.py
Dashboard
- Streamlit dashboard
app/ui/dashboard.py - Demo authentication
app/ui/auth.py - Prediction and analytics
Other components
- Dashboard user
Connections 19
- Dashboard user → Streamlit dashboard: uses
README.md - Streamlit dashboard → Demo authentication: requires login
app/ui/dashboard.py - Dataset preparation → Raw review loader: loads
src/data/prepare_dataset.py - Dataset preparation → Review cleaner: cleans
src/data/prepare_dataset.py - Dataset preparation → Sentiment labels: labels
src/data/prepare_dataset.py - Raw review loader → Raw reviews: reads
- Dataset preparation → Clean labeled data: writes
src/data/prepare_dataset.py - Model sampling → Clean labeled data: reads
src/data/create_model_sample.py - Model sampling → Model sample: writes
src/data/create_model_sample.py - Model training and evaluation → Model sample: trains on
README.md - Model training and evaluation → Saved SVM pipeline: saves
README.md - FastAPI endpoints → Saved SVM pipeline: loads
app/api/main.py - Streamlit dashboard → FastAPI endpoints: requests prediction
app/ui/dashboard.py - FastAPI endpoints → Sentiment prediction: routes
app/api/main.py - Sentiment prediction → Prediction and analytics: returns sentiment
app/api/main.py - Streamlit dashboard → Prediction and analytics: renders
app/ui/dashboard.py - Streamlit dashboard → FastAPI endpoints: requests metrics
app/ui/dashboard.py - FastAPI endpoints → Model metrics: serves metrics
app/api/main.py - Model metrics → Prediction and analytics: provides analytics