How marimecucci/beauty-commerce-intelligence works
Beauty Commerce Intelligence is a local-first synthetic commerce data platform with a Streamlit analytics dashboard and a constrained AI assistant. Its main workflow generates raw data, validates and transforms it through Bronze/Silver/Gold, exports Parquet for analytics, then serves filtered insights through the dashboard or approved agent tools. The README also documents S3-compatible storage, integrity checks, and a metadata catalog. Some supporting scripts were not excerpted; their relationships are included only where the README documents them.
Main entry points: pipeline.py Medallion pipeline · app.py Streamlit dashboard · 10_beauty_agent.py LangGraph agent · 06_query_s3.py S3 reconciliation
Components 23
Data production
- Generate data
scripts/01_generate_data.py - Synthetic generator
src/beauty_commerce/generator.py - Raw CSV
data/raw - Run pipeline
scripts/02_run_pipeline.py - Medallion pipeline
src/beauty_commerce/pipeline.py - Bronze snapshots
data/bronze - Silver datasets
data/silver - Gold aggregates
data/gold - Quality report
reports
Analytics storage
- Parquet export
scripts/03_export_parquet.py - Local Parquet
- S3 upload
scripts/05_upload_parquet_s3.py - S3-compatible store
- S3 reconciliation
scripts/06_query_s3.py - Parquet integrity
scripts/07_validate_parquet.py - Metadata catalog
scripts/08_build_catalog.py
Analytics experience
- Streamlit dashboard
dashboard/app.py
AI analytics
- LangGraph agent
scripts/10_beauty_agent.py - Forecast policy
src/beauty_commerce/agent_policy.py - Approved analytics tools
src/beauty_commerce/analytics_tools.py
Other components
- Operator
- Business question
- Ollama Qwen3
Connections 33
- Operator → Generate data: starts
scripts/01_generate_data.py - Generate data → Synthetic generator: calls
scripts/01_generate_data.py - Synthetic generator → Raw CSV: writes CSV
src/beauty_commerce/generator.py - Operator → Run pipeline: starts
scripts/02_run_pipeline.py - Run pipeline → Medallion pipeline: calls
scripts/02_run_pipeline.py - Medallion pipeline → Raw CSV: reads CSV
src/beauty_commerce/pipeline.py - Medallion pipeline → Bronze snapshots: copies snapshots
src/beauty_commerce/pipeline.py - Medallion pipeline → Silver datasets: writes CSV
src/beauty_commerce/pipeline.py - Medallion pipeline → Gold aggregates: writes aggregates
src/beauty_commerce/pipeline.py - Medallion pipeline → Quality report: writes report
src/beauty_commerce/pipeline.py - Operator → Parquet export: runs export
README.md - Parquet export → Local Parquet: exports datasets
README.md - Operator → S3 upload: runs upload
README.md - S3 upload → S3-compatible store: uploads and verifies
README.md - Operator → S3 reconciliation: runs query
scripts/06_query_s3.py - S3 reconciliation → S3-compatible store: queries remote
scripts/06_query_s3.py - S3 reconciliation → Local Parquet: reconciles local
scripts/06_query_s3.py - Operator → Parquet integrity: runs checks
scripts/07_validate_parquet.py - Parquet integrity → Local Parquet: validates datasets
scripts/07_validate_parquet.py - Parquet integrity → Quality report: checks report totals
scripts/07_validate_parquet.py - Operator → Metadata catalog: builds catalog
README.md - Metadata catalog → Local Parquet: catalogs datasets
README.md - Business question → Streamlit dashboard: asks or filters
README.md - Streamlit dashboard → Local Parquet: reads Gold data
dashboard/app.py - Streamlit dashboard → Quality report: shows quality
README.md - Streamlit dashboard → Metadata catalog: shows metadata
README.md - Streamlit dashboard → Forecast policy: checks forecast policy
dashboard/app.py - Streamlit dashboard → LangGraph agent: invokes agent
dashboard/app.py - Business question → LangGraph agent: asks analytics
scripts/10_beauty_agent.py - LangGraph agent → Ollama Qwen3: invokes model
scripts/10_beauty_agent.py - LangGraph agent → Approved analytics tools: dispatches tools
scripts/10_beauty_agent.py - LangGraph agent → Forecast policy: blocks forecasts
scripts/10_beauty_agent.py - Approved analytics tools → Local Parquet: queries Gold files
src/beauty_commerce/analytics_tools.py