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 pageshowhide
explore
- generateContent API5 questions
- Multimodal Inputs5 questions
- Function Calling6 questions
- Long-Context & Caching5 questions
- Embeddings5 questions
- Safety & Grounding6 questions
questions
page 2 of 2Your Gemini service keeps hitting safety blocks on legitimate user content — how do you diagnose it?
basics
~20 sInstrument 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.
For document QA on Gemini, how do you scope cache keys and TTLs per tenant?
basics
~20 sKey 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.
showing 31–32 of 32