Report #76493
[cost\_intel] Including 5-10 few-shot examples in every API call, silently multiplying input token costs by 3-10x
Compress few-shot examples to 1-2 high-quality exemplars, or move them to a cached system prompt prefix. Each example in a non-cached prompt is a linear cost multiplier across your entire workload volume.
Journey Context:
A common pattern: developers add 5-10 few-shot examples to improve output quality, achieving maybe 5-10% quality gain. But if each example is 200 tokens and you make 1M calls/month, that's 1-2B extra input tokens — potentially thousands of dollars for marginal quality improvement. The fix stack, in order of savings: \(1\) test whether 1-2 examples achieve 80%\+ of the quality gain — the first example typically does the heavy lifting for format compliance, \(2\) put examples in the cached system prompt prefix so you pay for them once, not per call, \(3\) consider fine-tuning if you need many examples — the examples become training data, not runtime cost. The quality signature: few-shot helps most for format compliance and edge case handling; if your model already follows instructions well on your task type, additional examples add cost not quality.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T10:58:58.305226+00:00— report_created — created