Shopify has developed and enhanced its AI assistant, Sidekick, by implementing a continual learning loop, optimizing prompt compression techniques, and introducing Just-in-Time (JIT) instructions to manage tool complexity. The system now uses Ground Truth Sets (GTX) and LLM-as-a-Judge calibrated against human judgment for robust evaluation, alongside LLM-powered user simulation for pre-production testing. Training has evolved to Group Relative Policy Optimization (GRPO) with N-Stage Gated Reward, addressing reward hacking through iterative improvements in syntax validators and LLM judges. Key takeaways emphasize modular architectures, robust evaluation frameworks, and vigilance against unexpected system failures.
All Shopify trails