18:50Prompt Engineering
Walks through Anthropic's prompt caching against Gemini's context caching with concrete latency-and-cost reductions per use case (long-document chat, few-shot, multi-turn). The breakdown of cache-write surcharge vs. cache-read discount is exactly what the article assumes when it talks about when caching pays off.
What you should get from this: You can estimate when prompt caching pays off by weighing cache-write surcharges against read savings for your real workloads.
Watch or know first: Working knowledge of LLM API pricing and long-prompt workloads.
AI Expert note: Recorded in August 2024, so the model names and per-token prices are dated. The cache-write-surcharge vs. cache-read-discount mechanic still holds; check current provider pricing pages before running the numbers for your workload.
