Skip to content

Commit 5b5990b

Browse files
authored
oss: google consolidation updates (#1790)
1 parent 647ba74 commit 5b5990b

File tree

21 files changed

+1016
-291
lines changed

21 files changed

+1016
-291
lines changed

reference/python/docs/integrations/index.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@ To learn more about integrations in LangChain, visit the [Integrations overview]
4343

4444
[:octicons-arrow-right-24: Reference](./langchain_google_genai/index.md)
4545

46-
- :simple-googlecloud:{ .lg .middle } __`langchain-google-vertexai`__
47-
48-
---
49-
50-
Use Google's Vertex AI model platform.
51-
52-
[:octicons-arrow-right-24: Reference](./langchain_google_vertexai/index.md)
53-
5446
- :material-aws:{ .lg .middle } __`langchain-aws`__
5547

5648
---
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: ChatGoogleGenerativeAI
3+
---
4+
5+
# :simple-googlegemini:{ .lg .middle } `ChatGoogleGenerativeAI`
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for `ChatGoogleGenerativeAI`. See [the docs](https://docs.langchain.com/oss/python/integrations/chat/google_generative_ai) for conceptual guides, tutorials, and examples on using `ChatGoogleGenerativeAI`.
9+
10+
::: langchain_google_genai.ChatGoogleGenerativeAI
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: GoogleGenerativeAI (Legacy LLM)
3+
---
4+
5+
# :simple-googlegemini:{ .lg .middle } `GoogleGenerativeAI` (Legacy LLM)
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for the legacy `GoogleGenerativeAI` LLM. See [the docs](https://docs.langchain.com/oss/python/integrations/chat/google_generative_ai) for conceptual guides, tutorials, and examples on using `GoogleGenerativeAI`.
9+
10+
::: langchain_google_genai.GoogleGenerativeAI
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: GoogleGenerativeAIEmbeddings
3+
---
4+
5+
# :simple-googlegemini:{ .lg .middle } `GoogleGenerativeAIEmbeddings`
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for `GoogleGenerativeAIEmbeddings`. See [the docs](https://docs.langchain.com/oss/python/integrations/text_embedding/google_generative_ai) for conceptual guides, tutorials, and examples on using `GoogleGenerativeAIEmbeddings`.
9+
10+
::: langchain_google_genai.GoogleGenerativeAIEmbeddings

reference/python/docs/integrations/langchain_google_genai/index.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,43 @@ title: Google (GenAI)
88
[![PyPI - License](https://img.shields.io/pypi/l/langchain-google-genai)](https://opensource.org/licenses/MIT)
99
[![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-google-genai)](https://pypistats.org/packages/langchain-google-genai)
1010

11-
!!! warning "Reference docs"
12-
This page contains **reference documentation** for Google GenAI. See [the docs](https://docs.langchain.com/oss/python/integrations/providers/google) for conceptual guides, tutorials, and examples on using Google GenAI modules.
11+
LangChain integration for Google's Generative AI models, providing access to Gemini models via both the **Gemini Developer API** and **Vertex AI**.
1312

14-
::: langchain_google_genai
13+
!!! note "Vertex AI consolidation"
14+
15+
As of `langchain-google-genai` 4.0.0, this package uses the consolidated [`google-genai`](https://googleapis.github.io/python-genai/) SDK instead of the legacy [`google-ai-generativelanguage`](https://googleapis.dev/python/generativelanguage/latest/) SDK.
16+
17+
This migration brings support for Gemini models both via the Gemini Developer API and Gemini API in Vertex AI, superseding certain classes in `langchain-google-vertexai`, such as `ChatVertexAI`. Refer to [the provider docs](https://docs.langchain.com/oss/python/integrations/providers/google) and [release notes](https://github.com/langchain-ai/langchain-google/discussions/1422) for more information.
18+
19+
## Modules
20+
21+
!!! note "Usage documentation"
22+
Refer to [the docs](https://docs.langchain.com/oss/python/integrations/providers/google) for a high-level guide on how to use each module. These reference pages contain auto-generated API documentation for each module, focusing on the "what" rather than the "how" or "why" (i.e. no end-to-end tutorials or conceptual overviews).
23+
24+
<div class="grid cards" markdown>
25+
26+
- :material-message-text:{ .lg .middle } __`ChatGoogleGenerativeAI`__
27+
28+
---
29+
30+
Gemini chat models.
31+
32+
[:octicons-arrow-right-24: Reference](./ChatGoogleGenerativeAI.md)
33+
34+
- :material-message-text:{ .lg .middle } __`GoogleGenerativeAI`__
35+
36+
---
37+
38+
(Legacy) Google text completion abstraction.
39+
40+
[:octicons-arrow-right-24: Reference](./GoogleGenerativeAI.md)
41+
42+
- :fontawesome-solid-layer-group:{ .lg .middle } __`GoogleGenerativeAIEmbeddings`__
43+
44+
---
45+
46+
Gemini embedding models.
47+
48+
[:octicons-arrow-right-24: Reference](./GoogleGenerativeAIEmbeddings.md)
49+
50+
</div>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: ChatVertexAI
3+
---
4+
5+
# :simple-googlecloud:{ .lg .middle } `ChatVertexAI`
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for `ChatVertexAI`. See [the docs](https://docs.langchain.com/oss/python/integrations/chat/google_vertex_ai) for conceptual guides, tutorials, and examples on using `ChatVertexAI`.
9+
10+
::: langchain_google_vertexai.ChatVertexAI
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: VertexAI (Legacy LLM)
3+
---
4+
5+
# :simple-googlecloud:{ .lg .middle } `VertexAI`
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for the legacy `VertexAI` LLM. See [the docs](https://docs.langchain.com/oss/python/integrations/llms/google_vertex_ai) for conceptual guides, tutorials, and examples on using `VertexAI`.
9+
10+
::: langchain_google_vertexai.VertexAI
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: VertexAIEmbeddings
3+
---
4+
5+
# :simple-googlecloud:{ .lg .middle } `VertexAIEmbeddings`
6+
7+
!!! note "Reference docs"
8+
This page contains **reference documentation** for `VertexAIEmbeddings`. See [the docs](https://docs.langchain.com/oss/python/integrations/text_embedding/google_vertex_ai) for conceptual guides, tutorials, and examples on using `VertexAIEmbeddings`.
9+
10+
::: langchain_google_vertexai.VertexAIEmbeddings

reference/python/docs/integrations/langchain_google_vertexai/index.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,49 @@ title: Google (VertexAI)
88
[![PyPI - License](https://img.shields.io/pypi/l/langchain-google-vertexai)](https://opensource.org/licenses/MIT)
99
[![PyPI - Downloads](https://img.shields.io/pepy/dt/langchain-google-vertexai)](https://pypistats.org/packages/langchain-google-vertexai)
1010

11-
!!! note "Reference docs"
12-
This page contains **reference documentation** for Google VertexAI. See [the docs](https://docs.langchain.com/oss/python/integrations/providers/google) for conceptual guides, tutorials, and examples on using Google VertexAI modules.
11+
LangChain integration for Google's Vertex AI Platform.
1312

14-
::: langchain_google_vertexai
13+
!!! note "Vertex AI consolidation"
14+
15+
As of `langchain-google-vertexai` 3.2.0, certain classes are deprecated in favor of equivalents in `langchain-google-genai` 4.0.0, which uses the consolidated [`google-genai`](https://googleapis.github.io/python-genai/) SDK.
16+
17+
Refer to [the provider docs](https://docs.langchain.com/oss/python/integrations/providers/google) and [release notes](https://github.com/langchain-ai/langchain-google/discussions/1422) for more information.
18+
19+
## Modules
20+
21+
!!! note "Usage documentation"
22+
Refer to [the docs](https://docs.langchain.com/oss/python/integrations/providers/google) for a high-level guide on how to use each module. These reference pages contain auto-generated API documentation for each module, focusing on the "what" rather than the "how" or "why" (i.e. no end-to-end tutorials or conceptual overviews).
23+
24+
<div class="grid cards" markdown>
25+
26+
- :material-message-text:{ .lg .middle } **`ChatVertexAI`**
27+
28+
---
29+
30+
**Deprecated:** Use `ChatGoogleGenerativeAI` from `langchain-google-genai` instead.
31+
32+
[:octicons-arrow-right-24: Reference](./ChatVertexAI.md)
33+
34+
- :material-message-text:{ .lg .middle } **`VertexAI`**
35+
36+
---
37+
38+
**Deprecated:** Use `GoogleGenerativeAI` from `langchain-google-genai` instead.
39+
40+
[:octicons-arrow-right-24: Reference](./VertexAI.md)
41+
42+
- :fontawesome-solid-layer-group:{ .lg .middle } **`VertexAIEmbeddings`**
43+
44+
---
45+
46+
**Deprecated:** Use `GoogleGenerativeAIEmbeddings` from `langchain-google-genai` instead.
47+
48+
[:octicons-arrow-right-24: Reference](./VertexAIEmbeddings.md)
49+
50+
- **Other**
51+
52+
---
53+
54+
[:octicons-arrow-right-24: Reference](./other.md)
55+
56+
</div>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Other Vertex AI Integrations
3+
---
4+
5+
# :simple-googlecloud:{ .lg .middle } `Other Vertex AI Integrations`
6+
7+
::: langchain_google_vertexai
8+
options:
9+
docstring_options:
10+
ignore_init_summary: true
11+
merge_init_into_class: true
12+
filters:
13+
- "!^ChatVertexAI$"
14+
- "!^VertexAI$"
15+
- "!^VertexAIEmbeddings$"

0 commit comments

Comments
 (0)