[ ABORT TO HUD ]
SEQ. 1
SEQ. 2

Grounding with Google Search

🔍 Grounding & Vertex Search 12m 250 BASE XP

Real-Time Fact Checking

LLMs hallucinate, especially regarding recent events. Vertex AI allows you to instantly "Ground" Gemini's responses using Google Search.

from vertexai.generative_models import Tool

# Enable Google Search Grounding
tool = Tool.from_google_search_retrieval()

response = model.generate_content(
    "What is the stock price of Alphabet today?",
    tools=[tool]
)

The response will include citations and links to the exact web pages it used to construct the factual answer.

SYNAPSE VERIFICATION
QUERY 1 // 2
What does 'Grounding with Google Search' achieve?
It searches your local files
It reduces hallucinations by verifying facts against live Google Search results and providing citations
It improves the UI design of your app
It caches search history
Watch: 139x Rust Speedup
Google Vertex AI Academy | Free Interactive Course | Infinity AI