Quiz 4 Question 14 of 20

A translation platform processes documents in 40 languages and uses few-shot examples in the system prompt to demonstrate translation style and tone. They currently include 5 examples per language (200 examples × average 150 tokens = 30,000 tokens) in the system prompt for every request regardless of target language. With prompt caching, this entire prompt is cached. However, the cache is invalidated whenever any example changes (e.g., updating French examples invalidates the cache for Spanish requests too). What caching architecture minimizes cache invalidation frequency?

Select an answer to reveal the explanation.

Motivation