
Sidekick's continual learning loop (2026) - Shopify
8/5/2026
This post details the implementation of a continual learning loop for Shopify's AI assistant, Sidekick. It introduces the 'flywheel' concept for compressing production experience into model weights. Key contributions include: defining quality via a rubric and annotator agreement, calibrating a judge model using DSPy and reflection-based optimizers (GEPA, ACE), improving the baseline system through autoresearch (propose-evaluate-keep/discard loop), and optimizing parameters by mining production traffic for hard negatives. The self-healing pipeline uses frontier reasoning models to critique failures, generate repair instructions, and create training trajectories for supervised fine-tuning (SFT) and GRPO. Gist compression is introduced to reduce prompt length and serving costs. The GraphQL agent is presented as a case study, showing quality improvements, cost reductions, and latency improvements.

