Guac
AI grocery intelligence and supply-chain optimization platform
Built the demand forecasting models and their ML lifecycle, the forecast-driven OR-Tools optimization engines, the Avo AI copilot with its guardrails, and the training data pipeline behind Guac's AI grocery operations platform.
Guac: AI grocery intelligence and supply-chain optimization
10–30%
Lower WAPE vs seasonal-naive baseline
10–30%
Less waste in pilot stores
70–90%
Proposed order lines accepted unchanged
50–80%
Avo drafts approved, no or minor edits
Stack
Overview
Guac is an AI-powered grocery operations platform that connects demand forecasting, inventory intelligence, replenishment, distribution planning and fresh-food production in one system. It forecasts demand at store, SKU and time-interval level, turns forecasts into purchasing and production recommendations, and learns from actual sales, waste and employee corrections.
The central idea: AI produces predictions, optimization services turn those predictions into feasible decisions, and the applications connect those decisions to day-to-day work.
The problem
Grocery retailers make thousands of ordering, purchasing and production decisions daily, and a forecast alone does not solve them: a store still needs a valid order quantity.
- Volatile demand: demand changes by store, product, day, weather, promotion and local events.
- Censored sales: when a product is out of stock, recorded sales understate demand.
- Hard constraints: orders must respect case packs and lead times; fresh food has limited shelf life.
My role
I worked at Guac as an AI engineer and built three areas of the product: demand forecasting and its ML lifecycle, the optimization engines and the AI copilot, and the data pipeline that feeds model training. Guac set the product direction and owned the customer relationships.
What I built
Demand forecasting and ML lifecycle
- LightGBM quantile models (P10, P50, P90) that forecast demand by store, SKU and day, with stockout-censored demand handling and promotion, weather and event features.
- Croston SBA for intermittent demand and TimesFM 2.5 for new SKUs, which move to LightGBM after eight weeks of sales history.
- A weekly retrain in Vertex AI Pipelines with rolling-origin backtests (WAPE, MASE) as the release gate.
Optimization engines and the Avo copilot
- OR-Tools CP-SAT models that turn forecast demand into store orders, DC purchases, allocations and production schedules within case-pack, shelf-life and storage limits.
- Avo: a GPT-5 mini lookup agent hands off to a GPT-5 drafting agent, both calling Guac's MCP server with role-filtered tools.
- Input guardrails reject requests outside grocery operations, an output guardrail checks quantities and dates against tool results, and every change is a draft the user approves.
Training data pipeline
- BigQuery warehouse models in dbt that serve the feature datasets.
- Apache Airflow DAGs that run the transformations and weekly training.
Results
- Forecast accuracy: WAPE 10–30% lower than the seasonal-naive baseline.
- Forecast bias: within ±2–5% at category level.
- Uncertainty range: 75–85% of actual sales fell inside the P10–P90 range.
- Waste: 10–30% less waste in pilot stores.
- Availability: on-shelf availability up 1–3 percentage points.
- Avo drafts: 50–80% of Avo's drafts approved with no or minor edits.
- Order proposals: store teams accepted 70–90% of proposed order lines unchanged.
Tech stack
| Layer | Technologies |
|---|---|
| Frontend | Nuxt, Vue 3, TypeScript, Tailwind CSS, shadcn-vue, TanStack Query, Apache ECharts |
| Mobile | Flutter / Dart, mobile_scanner |
| Backend | Python, FastAPI, Pydantic, SQLAlchemy, Alembic, WorkOS |
| Data | Cloud SQL for PostgreSQL, BigQuery, dbt Core, Apache Airflow (Cloud Composer), Pub/Sub, Great Expectations |
| AI and optimization | LightGBM, StatsForecast, TimesFM, Vertex AI, OR-Tools CP-SAT, OpenAI Agents SDK, MCP |
| Infrastructure | GKE, Cloud Run Jobs, Terraform, GitLab CI, OpenTelemetry, Google Cloud Observability, Sentry |
Related case studies


