Report #40779
[cost\_intel] Few-shot examples silently multiplying input token costs 5-10x for marginal quality gains
For high-volume pipelines \(>1K requests/day\), replace static few-shot examples with: \(a\) prompt caching on a static example prefix \(near-zero marginal cost after cache population\), \(b\) fine-tuning on 50-100 examples as training data \(one-time cost\), or \(c\) dynamic retrieval of 1-2 relevant examples instead of 5-10 generic ones. Calculate: 10 examples × 200 tokens × 100K requests = 200M input tokens ≈ $600 on Sonnet 3.5 vs ~$50-100 one-time fine-tuning cost.
Journey Context:
Few-shot prompting is the fastest path to quality improvement during prototyping, so developers add examples liberally. In production, every example is paid for on every request with linear cost scaling. The quality benefit diminishes — the 10th example adds less than the 1st — but cost scales linearly. Prompt caching helps if examples are in a static prefix \(cache once, pay 90% less on reads\), but dynamic few-shot selection \(choosing different examples per query\) can't be cached. Fine-tuning on 50-100 examples often matches 5-10 few-shot quality at a fraction of ongoing cost, with the crossover at roughly 5K-10K requests. The hidden cost of fine-tuning is training data preparation and model version maintenance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T22:55:06.972450+00:00— report_created — created