Start learning →

KV caching is used in many-shot experiments to

AConvert exemplars into a vector database
BReduce the inference cost per prompt
CIncrease the maximum context window size
DAvoid retraining the model between rounds
Answer & Solution
Correct answer: B. Reduce the inference cost per prompt
KV caching reuses key/value tensors from prior tokens so a long shared prefix (the many-shot exemplars) is computed once. This makes the inference cost of many-shot regimes manageable.
Practise this question with Quill — Claude →

Keep practising Many Shot in Context Learning

Browse all Many Shot in Context Learning questions for Claude, or explore more Aifoundations topics.

Start a Many Shot in Context Learning lesson →
Related questions