Prompt caching vs semantic caching
Prompt caching makes the call cheaper; semantic caching skips the call.
Choose Prompt caching when…
- Long shared prefixes (tools, system prompt, documents)
- Every answer must be freshly generated
Prompt caching in the atlas →Often both: Cache the prefix always; add a tenant-scoped semantic cache only for public, stable content.