Diagram

A sequence diagram with Application, Gemini on Vertex AI, and Google Search lifelines showing 1) send prompt with GoogleSearch tool, 2) retrieve live web evidence, 3) return grounded answer.
How Google Search Grounding Works
Google Search grounding is a tool enabled inside a Vertex AI generation request. The application builds a GenerateContentRequest that names a specific model, such as gemini-2.5-flash, includes the user content, such as "When is the next total solar eclipse in US?", and adds a Tools field containing GoogleSearch. The request is sent through a prediction client to a regional endpoint, such as us-central1-aiplatform.googleapis.com, and the model returns candidates whose text reflects the search results. Setting a low temperature, such as 0.0 in GenerationConfig, makes this output more factual and consistent.
Domain 1 of 2
35 practice questions
Practice this DomainLast updated