Closed AJaySi closed 4 months ago
When to use context caching Context caching is particularly well suited to scenarios where a substantial initial context is referenced repeatedly by shorter requests. Consider using context caching for use cases such as:
Chatbots with extensive system instructions Repetitive analysis of lengthy video files Recurring queries against large document sets Frequent code repository analysis or bug fixing
Implemented with google gemini. TBD for Openai and anthropic.
Helps save in billing, implemented for long form content. TBD for large audio & video files.
https://ai.google.dev/gemini-api/docs/caching?lang=python