Use this file to discover all available pages before exploring further.
This page covers all LangChain integrations with Google Gemini, Google Cloud, and other Google products (such as Google Maps, YouTube, and more).
Unified SDK & package consolidationAs of langchain-google-genai 4.0.0, this package uses the consolidated google-genai SDK and now supports both the Gemini Developer API and Vertex AI backends.The langchain-google-vertexai package remains supported for Vertex AI platform-specific features (Model Garden, Vector Search, evaluation services, etc.).Read the full announcement and migration guide.
Not sure which package to use?
Google Generative AI (Gemini API & Vertex AI)
Access Google Gemini models via the Gemini Developer API or Vertex AI. The backend is selected automatically based on your configuration.
Gemini Developer API: Quick setup with API key, ideal for individual developers and rapid prototyping
Vertex AI: Enterprise features with Google Cloud integration (requires GCP project)
Use the langchain-google-genai package for chat models, LLMs, and embeddings.See integrations.
Google Cloud (Vertex AI Platform Services)
Access Vertex AI platform-specific services beyond Gemini models: Model Garden (Llama, Mistral, Anthropic), evaluation services, and specialized vision models.Use the langchain-google-vertexai package for platform services and specific packages (e.g., langchain-google-community, langchain-google-cloud-sql-pg) for other cloud services like databases and storage.See integrations.
Access Vertex AI platform-specific services including Model Garden (Llama, Mistral, Anthropic), Vector Search, evaluation services, and specialized vision models.
For Gemini models, use ChatGoogleGenerativeAI from langchain-google-genai. The classes below focus on Vertex AI platform services not available in the consolidated SDK.
Store and search vectors using Google Cloud databases and Vertex AI Vector Search.
AlloyDB for PostgreSQL
PostgreSQL-compatible vector store on AlloyDB.
BigQuery Vector Search
Semantic search using GoogleSQL with vector indexes.
Memorystore for Redis
Vector store on Memorystore for Redis.
Spanner
Vector store on Cloud Spanner.
Bigtable
Vector store on Cloud Bigtable.
Firestore (Native Mode)
Vector store on Firestore.
Cloud SQL for MySQL
Vector store on Cloud SQL for MySQL.
Cloud SQL for PostgreSQL
Vector store on Cloud SQL for PostgreSQL.
Vertex AI Vector Search
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.
Vertex AI Vector Search + Datastore
Vector search with Datastore for document storage.