skip to content

Google Gemini

Google's Gemini API, reached through the GenAI SDK. Its distinctive interview material is native multimodality over image, audio and video, a very large context window with explicit caching, and answers grounded in Google Search.

on this pageshow

explore

questions

page 2 of 2

Your Gemini service keeps hitting safety blocks on legitimate user content — how do you diagnose it?

level: seniorimportance: should knowfreq 42%

basics

~20 s

Instrument first: log the block reason, the finish reason and every category/probability pair per request. That shows which single category fires and where. Then fix in order — prompt and system instruction, then that one category's threshold, never a blanket loosening.

open as a page

For document QA on Gemini, how do you scope cache keys and TTLs per tenant?

level: principalimportance: should knowfreq 33%

basics

~20 s

Key each cache by tenant, document version and target model, since caches are immutable and model-bound. Set TTL to the observed session length, extend on activity, delete on close, and only cache prefixes whose reuse per hour beats the storage fee.

open as a page

showing 31–32 of 32