Google integrations
This page covers all LangChain integrations with Google Gemini, Google Cloud, and other Google products (such as Google Maps, YouTube, and more).
Note
Unified SDK & package consolidation
As of langchain-google-genai 4.0.0, this package uses the consolidated google-genai SDK and now supports both the Gemini Developer API and Gemini Enterprise Agent Platform backends.
The langchain-google-vertexai package remains supported for Gemini Enterprise Agent Platform-specific features (Model Garden, Vector Search, evaluation services, etc.).
Read the full announcement and migration guide.
Not sure which package to use?
See Google's guide on migrating from the Gemini API to Gemini Enterprise Agent Platform for more details on the differences.
Google Generative AI
Access Google Gemini models via the Gemini Developer API or Gemini Enterprise Agent Platform using the unified langchain-google-genai package.
Chat models
Google Gemini chat models via Gemini Developer API or Gemini Enterprise Agent Platform.
LLMs
Gemini models using the (legacy) LLM text completion interface.
Embedding models
Gemini embedding models via Gemini Developer API or Gemini Enterprise Agent Platform.
Google Cloud
Access Gemini Enterprise Agent Platform-specific services including Model Garden (Llama, Mistral, Anthropic), Vector Search, evaluation services, and specialized vision models.
Note
For Gemini models, use ChatGoogleGenerativeAI from langchain-google-genai. The classes below focus on Gemini Enterprise Agent Platform services not available in the consolidated SDK.
Chat models
Anthropic on Gemini Enterprise Agent Platform Model Garden
LLMs
(Legacy) string-in, string-out LLM interface.
Hundreds of OSS models via Gemini Enterprise Agent Platform Model Garden.
Embedding models
Document loaders
PostgreSQL-compatible database on Google Cloud.
Serverless data warehouse.
Key-value and wide-column store for structured and semi-structured data.
Managed MySQL database.
Managed SQL Server database.
Managed PostgreSQL database.
Load documents from a GCS bucket directory.
Load a single document from GCS.
Oracle databases on Kubernetes via El Carro.
NoSQL document database.
Firestore in Datastore mode.
Managed Redis service.
Globally distributed relational database.
Transcribe audio files.
Document transformers
Extract structured data from unstructured documents.
Translate text and HTML via Cloud Translation API.
Vector stores
Store and search vectors using Google Cloud databases and Vector Search on Gemini Enterprise Agent Platform.
PostgreSQL-compatible vector store on AlloyDB.
Semantic search using GoogleSQL with vector indexes.
Vector store on Memorystore for Redis.
Vector store on Cloud Spanner.
Vector store on Cloud Bigtable.
Vector store on Firestore.
Vector store on Cloud SQL for MySQL.
Vector store on Cloud SQL for PostgreSQL.
Vector Search on Gemini Enterprise Agent Platform
Formerly known as Vertex AI Matching Engine, provides a low latency vector database. These vector databases are commonly referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.
Vector Search on Gemini Enterprise Agent Platform + Datastore
Vector search with Datastore for document storage.
Retrievers
Agent Search on Gemini Enterprise Agent Platform
Generative AI powered search via Agent Search on Gemini Enterprise Agent Platform.
Search, store, and manage documents using Document AI Warehouse.
from langchain_google_community import VertexAIMultiTurnSearchRetriever
from langchain_google_community import VertexAISearchRetriever
from langchain_google_community import VertexAISearchSummaryToolTools
Integrate agents with various Google Cloud services.
Synthesize natural-sounding speech with 100+ voices.
Callbacks
Track LLM/Chat model usage.
Evaluators
Evaluate model outputs using Gemini Enterprise Agent Platform.
Other Google products
Integrations with various Google services beyond the core Cloud Platform.
Document loaders
Load files from Google Drive. Currently supports Google Docs.
Retrievers
Retrieve documents from Google Drive.
Tools
Web search via Google Custom Search Engine (CSE).
Interact with Google Drive.
MCP
Connect to databases including Cloud SQL and AlloyDB.
Toolkits
Create, search, and send emails via the Gmail API.
3rd party integrations
Access Google services via unofficial third-party APIs.
Search
Google Search results with AI Overview support.