From 9e48b8822b001151f3b6e6c5e1fd417cdbec89ab Mon Sep 17 00:00:00 2001 From: Amna Mubashar Date: Thu, 29 Aug 2024 15:51:40 +0200 Subject: [PATCH] remove deprecated gemini-pro-vision --- notebooks/vertexai-gemini-examples.ipynb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/notebooks/vertexai-gemini-examples.ipynb b/notebooks/vertexai-gemini-examples.ipynb index b4aba04..a75908a 100644 --- a/notebooks/vertexai-gemini-examples.ipynb +++ b/notebooks/vertexai-gemini-examples.ipynb @@ -29,7 +29,7 @@ "\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", @@ -37,7 +37,7 @@ "\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" ] }, @@ -120,7 +120,7 @@ "id": "08TA9zAQlqy6" }, "source": [ - "## Use `gemini-pro-vision`" + "## Use `gemini-1.5-flash`" ] }, { @@ -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)" ] }, { @@ -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. 🤖" ] @@ -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`" ] }, { @@ -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`" ] }, { @@ -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",