本页介绍所有 LangChain 与 Google Gemini、Google Cloud 以及其他 Google 产品(如 Google Maps、YouTube 和 更多)的集成。Documentation Index
Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
Use this file to discover all available pages before exploring further.
langchain-google-genai 4.0.0 版本起,此包使用整合后的 google-genai SDK,并支持 Gemini 开发者 API 和 Vertex AI 后端。langchain-google-vertexai 包继续支持 Vertex AI 平台特定功能(Model Garden、向量搜索、评估服务等)。阅读 完整公告和迁移指南。谷歌生成式 AI (Gemini API & Vertex AI)
谷歌生成式 AI (Gemini API & Vertex AI)
- Gemini 开发者 API:使用 API 密钥快速设置,适合个人开发者和快速原型开发
- Vertex AI:具有 Google Cloud 集成的企业级功能(需要 GCP 项目)
langchain-google-genai 包处理聊天模型、LLM 和嵌入模型。查看集成。Google Cloud (Vertex AI 平台服务)
Google Cloud (Vertex AI 平台服务)
langchain-google-vertexai 包处理平台服务,以及特定包(例如 langchain-google-community、langchain-google-cloud-sql-pg)处理其他云服务如数据库和存储。查看集成。谷歌生成式 AI
使用统一的langchain-google-genai 包,通过 Gemini 开发者 API 或 Vertex AI 访问 Google Gemini 模型。
聊天模型
ChatGoogleGenerativeAI
LLMs
GoogleGenerativeAI
嵌入模型
GoogleGenerativeAIEmbeddings
Google Cloud
访问 Vertex AI 平台特定服务,包括 Model Garden(Llama、Mistral、Anthropic)、向量搜索、评估服务和专用视觉模型。langchain-google-genai 的 ChatGoogleGenerativeAI。以下类专注于 Vertex AI 平台服务,这些服务在整合后的 SDK 中不可用。聊天模型
ChatAnthropicVertex
ChatVertexAI (已弃用)
ChatVertexAI (已弃用)
ChatGoogleGenerativeAI 处理 Gemini 模型。VertexModelGardenLlama
VertexModelGardenLlama
VertexModelGardenMistral
VertexModelGardenMistral
GemmaChatLocalHF
GemmaChatLocalHF
GemmaChatLocalKaggle
GemmaChatLocalKaggle
GemmaChatVertexAIModelGarden
GemmaChatVertexAIModelGarden
VertexAIImageCaptioningChat
VertexAIImageCaptioningChat
VertexAIImageEditorChat
VertexAIImageEditorChat
VertexAIImageGeneratorChat
VertexAIImageGeneratorChat
VertexAIVisualQnAChat
VertexAIVisualQnAChat
LLMs
(遗留) 字符串输入、字符串输出的 LLM 接口。VertexAIModelGarden
VertexAI (已弃用)
VertexAI (已弃用)
GoogleGenerativeAI 处理 Gemini 模型。Gemma local from Hugging Face
Gemma local from Hugging Face
Gemma local from Kaggle
Gemma local from Kaggle
Gemma on Vertex AI Model Garden
Gemma on Vertex AI Model Garden
Vertex AI image captioning
Vertex AI image captioning
嵌入模型
VertexAIEmbeddings (已弃用)
VertexAIEmbeddings (已弃用)
GoogleGenerativeAIEmbeddings。文档加载器
AlloyDB for PostgreSQL
BigQuery
Bigtable
Cloud SQL for MySQL
Cloud SQL for SQL Server
Cloud SQL for PostgreSQL
Cloud Storage (directory)
Cloud Storage (file)
El Carro for Oracle Workloads
Firestore (Native Mode)
Firestore (Datastore Mode)
Memorystore for Redis
Spanner
Speech-to-Text
Cloud Vision loader
Cloud Vision loader
文档转换器
Document AI
Google Translate
向量存储
使用 Google Cloud 数据库和 Vertex AI Vector Search 存储和搜索向量。AlloyDB for PostgreSQL
BigQuery Vector Search
Memorystore for Redis
Spanner
Bigtable
Firestore (Native Mode)
Cloud SQL for MySQL
Cloud SQL for PostgreSQL
Vertex AI Vector Search
Vertex AI Vector Search + Datastore
检索器
Vertex AI Search
Document AI Warehouse
工具
将代理与各种 Google Cloud 服务集成。Text-to-Speech
回调
跟踪 LLM/聊天模型使用情况。Vertex AI callback handler
Vertex AI callback handler
VertexAI 使用情况信息。Google BigQuery
Google BigQuery
评估器
使用 Vertex AI 评估模型输出。VertexPairWiseStringEvaluator
VertexPairWiseStringEvaluator
VertexStringEvaluator
VertexStringEvaluator

