From 166bc3ff5a248e0360512cfa7cf5ee73de5b9794 Mon Sep 17 00:00:00 2001 From: Gary Ng <2731200+gkcng@users.noreply.github.com> Date: Thu, 11 Jul 2024 07:47:24 -0700 Subject: [PATCH 1/2] fix: Minor changes, fixed invalid links #842 (#862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #842 🦕 --- gemini/function-calling/intro_diy_react_agent.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gemini/function-calling/intro_diy_react_agent.ipynb b/gemini/function-calling/intro_diy_react_agent.ipynb index 156b6e6080..2aadf83fa6 100644 --- a/gemini/function-calling/intro_diy_react_agent.ipynb +++ b/gemini/function-calling/intro_diy_react_agent.ipynb @@ -110,7 +110,7 @@ "\n", "In the third example in this notebook, we leverage [Function Calling in Gemini](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling) to build our simple agent. It lets developers create a description of a function in their code, then pass that description to a language model in a request. The response from the model includes the name of a function that matches the description and the arguments to call it with.\n", "\n", - "There are also other tools-calling and agents building frameworks to increase developers productivity. For example, the [Tool-Calling Agents](https://python.langchain.com/v0.1/docs/modules/agents/agent_types/tool_calling/) from LangChain, and at an even higher level of abstraction, [Reasoning Engine](https://cloud.google.com/vertex-ai/generative-ai/docs/reasoning-engine/overview) is a Google Cloud managed service that helps you to build and deploy an agent reasoning framework ([See sample notebooks](https://github.com/gkcng/generative-ai/blob/gkcng-demo/gemini/reasoning-engine)). Reasoning Engine integrates closely with the Python SDK for the Gemini model in Vertex AI, and it can manage prompts, agents, and examples in a modular way. Reasoning Engine is compatible with LangChain, LlamaIndex, or other Python frameworks. " + "There are also other tools-calling and agents building frameworks to increase developers productivity. For example, the [Tool-Calling Agents](https://python.langchain.com/v0.1/docs/modules/agents/agent_types/tool_calling/) from LangChain, and at an even higher level of abstraction, [Reasoning Engine](https://cloud.google.com/vertex-ai/generative-ai/docs/reasoning-engine/overview) is a Google Cloud managed service that helps you to build and deploy an agent reasoning framework ([See sample notebooks](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/reasoning-engine)). Reasoning Engine integrates closely with the Python SDK for the Gemini model in Vertex AI, and it can manage prompts, agents, and examples in a modular way. Reasoning Engine is compatible with LangChain, LlamaIndex, or other Python frameworks. " ] }, { @@ -1324,7 +1324,7 @@ " function_calls.append(function_call_dict)\n", " return function_calls\n", "```\n", - "In recent versions of specific Gemini Pro models (from May 2024 and on), Gemini has the ability to return two or more function calls in parallel (i.e., two or more function call responses within the first function call response object). Parallel function calling allows you to fan out and parallelize your API calls or other actions that you perform in your application code, so you don't have to work through each function call response and return one-by-one! Refer to the [Gemini Function Calling documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling) for more information on which Gemini model versions support parallel function calling, and this [notebook on parallel function calling](https://github.com/gkcng/generative-ai/blob/gkcng-demo/gemini/function-calling/parallel_function_calling.ipynb) for examples." + "In recent versions of specific Gemini Pro models (from May 2024 and on), Gemini has the ability to return two or more function calls in parallel (i.e., two or more function call responses within the first function call response object). Parallel function calling allows you to fan out and parallelize your API calls or other actions that you perform in your application code, so you don't have to work through each function call response and return one-by-one! Refer to the [Gemini Function Calling documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling) for more information on which Gemini model versions support parallel function calling, and this [notebook on parallel function calling](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/function-calling/parallel_function_calling.ipynb) for examples." ] }, { From f49f23e74c738f8e0f8804a381acc10930fb2eb3 Mon Sep 17 00:00:00 2001 From: Tianli Yu Date: Thu, 11 Jul 2024 07:48:19 -0700 Subject: [PATCH 2/2] fix(minor): product_attributes_extraction.ipynb (#860) Removes the project ID accidentally included in the colab. Co-authored-by: Holt Skinner <13262395+holtskinner@users.noreply.github.com> --- gemini/use-cases/retail/product_attributes_extraction.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemini/use-cases/retail/product_attributes_extraction.ipynb b/gemini/use-cases/retail/product_attributes_extraction.ipynb index c016f5ea74..a9fa70c53e 100644 --- a/gemini/use-cases/retail/product_attributes_extraction.ipynb +++ b/gemini/use-cases/retail/product_attributes_extraction.ipynb @@ -213,7 +213,7 @@ }, "outputs": [], "source": [ - "PROJECT_ID = \"cloud_llm_preview1\" # @param {type:\"string\"}\n", + "PROJECT_ID = \"YOUR_PROJECT_ID\" # @param {type:\"string\"}\n", "LOCATION = \"us-central1\" # @param {type:\"string\"}\n", "\n", "\n",