Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove deprecated gemini models #114

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions notebooks/vertexai-gemini-examples.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"\n",
">>[Install dependencies](#scrollTo=XromVwB1nQ76)\n",
"\n",
">>[Use gemini-pro-vision](#scrollTo=08TA9zAQlqy6)\n",
">>[Use gemini-1.5-flash](#scrollTo=08TA9zAQlqy6)\n",
"\n",
">>>[Answer Questions](#scrollTo=c1ynAXT5mI1s)\n",
"\n",
">>>[Answer Questions about Images](#scrollTo=H3pU-t_7mPyH)\n",
"\n",
">>[Function Calling with gemini-pro](#scrollTo=gLIIQ4PZmX-H)\n",
"\n",
">>[Build a full Retrieval-Augmented Generation Pipeline with gemini-pro-vision](#scrollTo=Pi37EVlDenPw)\n",
">>[Build a full Retrieval-Augmented Generation Pipeline with gemini-1.5-flash](#scrollTo=Pi37EVlDenPw)\n",
"\n"
]
},
Expand Down Expand Up @@ -120,7 +120,7 @@
"id": "08TA9zAQlqy6"
},
"source": [
"## Use `gemini-pro-vision`"
"## Use `gemini-1.5-flash`"
]
},
{
Expand All @@ -144,7 +144,7 @@
"source": [
"from haystack_integrations.components.generators.google_vertex import VertexAIGeminiGenerator\n",
"\n",
"gemini = VertexAIGeminiGenerator(model=\"gemini-pro-vision\", project_id=project_id)"
"gemini = VertexAIGeminiGenerator(model=\"gemini-1.5-flash\", project_id=project_id)"
]
},
{
Expand Down Expand Up @@ -186,7 +186,7 @@
"id": "U-wi810nOGZW"
},
"source": [
"Let's try something a bit different! `gemini-pro-vision` can also work with images, let's see if we can have it answer questions about some robots 👇\n",
"Let's try something a bit different! `gemini-1.5-flash` can also work with images, let's see if we can have it answer questions about some robots 👇\n",
"\n",
"We're going to download some images for this example. 🤖"
]
Expand Down Expand Up @@ -407,7 +407,7 @@
"id": "Pi37EVlDenPw"
},
"source": [
"## Build a full Retrieval-Augmented Generation Pipeline with `gemini-pro-vision`"
"## Build a full Retrieval-Augmented Generation Pipeline with `gemini-1.5-flash`"
]
},
{
Expand All @@ -416,7 +416,7 @@
"id": "fQz9_N46hniU"
},
"source": [
"As a final exercise, let's add the `VertexAIGeminiGenerator` to a full RAG pipeline. In the example below, we are building a RAG pipeline that does question answering on the web, using `gemini-pro-vision`"
"As a final exercise, let's add the `VertexAIGeminiGenerator` to a full RAG pipeline. In the example below, we are building a RAG pipeline that does question answering on the web, using `gemini-1.5-flash`"
]
},
{
Expand All @@ -438,7 +438,7 @@
"converter = HTMLToDocument()\n",
"document_splitter = DocumentSplitter(split_by=\"word\", split_length=50)\n",
"similarity_ranker = TransformersSimilarityRanker(top_k=3)\n",
"gemini = VertexAIGeminiGenerator(model=\"gemini-pro-vision\", project_id=project_id)\n",
"gemini = VertexAIGeminiGenerator(model=\"gemini-1.5-flash\", project_id=project_id)\n",
"\n",
"prompt_template = \"\"\"\n",
"According to these documents:\n",
Expand Down