Shopify's "Gisting": Squeezing a 6,000-Token Prompt Down to 1,500
カートのアイテムが多すぎます
カートに追加できませんでした。
ウィッシュリストに追加できませんでした。
ほしい物リストの削除に失敗しました。
ポッドキャストのフォローに失敗しました
ポッドキャストのフォロー解除に失敗しました
-
ナレーター:
-
著者:
Jordan and Riley break down Shopify Engineering's "gisting" technique — replacing a big, repeated system prompt with a handful of learned "gist tokens" that carry the same behavior to the model, trained via self-distillation (teacher pass with the full prompt, student pass with the gist tokens, minimize the gap between them). They cover why deployment stays trivial — the learned embeddings are written straight into the model's embedding matrix, no custom serving path — and the payoff on Shopify's Sidekick GraphQL agent: 4:1 compression, time-to-first-token down 19%, end-to-end latency down 38%, and 14% fewer GPUs. This is original commentary and discussion, not a reproduction of the original post.
Source: "Gisting: Compressing LLM Agent Context to increase throughput and reduce cost" by Paige Vegna and Cody Mazza-Anthony, Shopify Engineering, Aug 19 2026 — https://shopify.engineering/gisting