Scaling Generative AI Features to Millions of Users with Infrastructure Optimization and Quality Evaluation

Austin Bell, Shaurya Kethireddy, Gene Ting6 Dec 2025

Problem

Slack AI had more than a dozen generative features and fast-growing adoption. Capacity was provisioned for peak load on GPUs that took weeks to obtain, so Slack paid for idle GPUs most of the day and could run only one or two LLMs. Prompt and model changes also caused hidden regressions, because generative output is subjective and cannot be checked by hand at scale.

Example from the article: search query understanding used an LLM that met quality goals but exceeded the search latency budget and was very expensive at Slack's search volume.

Solution in brief

Slack moved inference from provisioned SageMaker capacity to Amazon Bedrock in stages, with shadow traffic and a staged cutover, and later to quota-based on-demand use. On top of that it built an offline-then-online evaluation pipeline (golden sets, validation sets, task-specific LLM judges, A/B tests), so each prompt or model change is judged on quality, latency and cost together.

Questions this case answers
  • How to decide whether a cheaper or faster model can replace the current one when output quality is subjective and cannot be checked by hand at scale
  • How to migrate a latency-sensitive production service between inference backends with no downtime and with a rollback path
  • How to check that a prompt change or a model swap in an LLM feature improves quality instead of causing regressions elsewhere?
  • How to move an LLM feature from fixed provisioned capacity to pay-per-use inference without downtime?

Tools and methods

  • Amazon Bedrock — many models inside Slack's compliance boundary
  • Amazon SageMaker — the earlier provisioned-throughput setup
  • Shadow traffic and staged cutover — duplicate requests to the new backend, then shift 1%, 5%, 10%, 100%
  • Backup models and emergency stops — reroute requests without code changes
  • Programmatic metrics, LLM judges, guardrails — automated scoring
  • Golden sets, validation sets, A/B tests — three evaluation stages of increasing size
Continue reading — it's free

Google or a one-time email code. No password.