You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integrations/google-ai.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ toc: true
22
22
-[Overview](#overview)
23
23
-[Installation](#installation)
24
24
-[Usage](#usage)
25
-
-[Multimodality with `gemini-pro-vision`](#multimodality-with-gemini-pro-vision)
25
+
-[Multimodality with `gemini-1.5-flash`](#multimodality-with-gemini-1.5-flash)
26
26
-[Function calling](#function-calling)
27
27
-[Code generation](#code-generation)
28
28
@@ -44,8 +44,8 @@ pip install google-ai-haystack
44
44
45
45
Once installed, you will have access to various Haystack Generators:
46
46
47
-
-[`GoogleAIGeminiGenerator`](https://docs.haystack.deepset.ai/docs/googleaigeminigenerator): Use this component with Gemini models '**gemini-pro**', '**gemini-pro-vision**', '**gemini-ultra**' for text generation and multimodal prompts.
48
-
-[`GoogleAIGeminiChatGenerator`](https://docs.haystack.deepset.ai/docs/googleaigeminichatgenerator): Use this component with Gemini models '**gemini-pro**', '**gemini-pro-vision**' and '**gemini-ultra**' for text generation, multimodal prompts and function calling in chat completion setting.
47
+
-[`GoogleAIGeminiGenerator`](https://docs.haystack.deepset.ai/docs/googleaigeminigenerator): Use this component with Gemini models '**gemini-pro**', '**gemini-1.5-flash**', '**gemini-1.5-pro**' for text generation and multimodal prompts.
48
+
-[`GoogleAIGeminiChatGenerator`](https://docs.haystack.deepset.ai/docs/googleaigeminichatgenerator): Use this component with Gemini models '**gemini-pro**', '**gemini-1.5-flash**' and '**gemini-1.5-pro**' for text generation, multimodal prompts and function calling in chat completion setting.
49
49
50
50
To use Google Gemini models you need an API key. You can either pass it as init argument or set a `GOOGLE_API_KEY` environment variable. If neither is set you won't be able to use the generators.
51
51
@@ -72,9 +72,9 @@ Output:
72
72
Assemblage in art refers to the creation of a three-dimensional artwork by combining various found objects...
73
73
```
74
74
75
-
### Multimodality with `gemini-pro-vision`
75
+
### Multimodality with `gemini-1.5-flash`
76
76
77
-
To use `gemini-pro-vision` model for visual question answering, initialize a `GoogleAIGeminiGenerator` with `"gemini-pro-vision"` and `project_id`. Then, run it with the images as well as the prompt:
77
+
To use `gemini-1.5-flash` model for visual question answering, initialize a `GoogleAIGeminiGenerator` with `"gemini-1.5-flash"` and `project_id`. Then, run it with the images as well as the prompt:
Once installed, you will have access to various Haystack Generators:
50
-
-[`VertexAIGeminiGenerator`](https://docs.haystack.deepset.ai/docs/vertexaigeminigenerator): Use this component with Gemini models '**gemini-pro**' and '**gemini-pro-vision**' for text generation and multimodal prompts.
51
-
-[`VertexAIGeminiChatGenerator`](https://docs.haystack.deepset.ai/docs/vertexaigeminichatgenerator): Use this component with Gemini models '**gemini-pro**' and '**gemini-pro-vision**' for text generation, multimodal prompts and function calling in chat completion setting.
50
+
-[`VertexAIGeminiGenerator`](https://docs.haystack.deepset.ai/docs/vertexaigeminigenerator): Use this component with Gemini models '**gemini-pro**' and '**gemini-1.5-flash**' for text generation and multimodal prompts.
51
+
-[`VertexAIGeminiChatGenerator`](https://docs.haystack.deepset.ai/docs/vertexaigeminichatgenerator): Use this component with Gemini models '**gemini-pro**' and '**gemini-1.5-flash**' for text generation, multimodal prompts and function calling in chat completion setting.
52
52
-`VertexAITextGenerator`: Use this component with PaLM models for text generation.
53
53
-`VertexAICodeGenerator`: Use this component with Codey model for code generation and code completion.
54
54
-`VertexAIImageGenerator`: Use this component with Imagen model '**imagegeneration**' for image generation.
@@ -80,9 +80,9 @@ Output:
80
80
Assemblage in art refers to the creation of a three-dimensional artwork by combining various found objects...
81
81
```
82
82
83
-
**Multimodality with `gemini-pro-vision`**
83
+
**Multimodality with `gemini-1.5-flash`**
84
84
85
-
To use `gemini-pro-vision` model for visual question answering, initialize a `VertexAIGeminiGenerator` with `"gemini-pro-vision"` and `project_id`. Then, run it with the images as well as the prompt:
85
+
To use `gemini-1.5-flash` model for visual question answering, initialize a `VertexAIGeminiGenerator` with `"gemini-1.5-flash"` and `project_id`. Then, run it with the images as well as the prompt:
0 commit comments