From cf971247e458f3b8e0d3f16f23eee0861981ae0d Mon Sep 17 00:00:00 2001 From: Rahul Lashkari Date: Sat, 19 Apr 2025 22:50:29 +0530 Subject: [PATCH] fix(docs): correct typos and clarify docstrings in react_gemini_prompting.ipynb --- site/en/docs/react_gemini_prompting.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/site/en/docs/react_gemini_prompting.ipynb b/site/en/docs/react_gemini_prompting.ipynb index a7a28be37..915a87bc9 100644 --- a/site/en/docs/react_gemini_prompting.ipynb +++ b/site/en/docs/react_gemini_prompting.ipynb @@ -584,7 +584,7 @@ " task-specific actions in an interleaved manner.\n", "\n", " Args:\n", - " model: name to the model.\n", + " model: name of the model.\n", " ReAct_prompt: ReAct prompt OR path to the ReAct prompt.\n", " \"\"\"\n", " self.model = genai.GenerativeModel(model)\n", @@ -663,7 +663,7 @@ "source": [ "@ReAct.add_method\n", "def search(self, query: str):\n", - " \"\"\"Perfoms search on `query` via Wikipedia api and returns its summary.\n", + " \"\"\"Performs search on `query` via Wikipedia api and returns its summary.\n", "\n", " Args:\n", " query: Search parameter to query the Wikipedia API with.\n", @@ -720,7 +720,7 @@ "source": [ "@ReAct.add_method\n", "def lookup(self, phrase: str, context_length=200):\n", - " \"\"\"Searches for the `phrase` in the lastest Wikipedia search page\n", + " \"\"\"Searches for the `phrase` in the latest Wikipedia search page\n", " and returns number of sentences which is controlled by the\n", " `context_length` parameter.\n", "\n", @@ -828,7 +828,7 @@ " else:\n", " model_prompt = user_question\n", "\n", - " # stop_sequences for the model to immitate function calling\n", + " # stop_sequences for the model to imitate function calling\n", " callable_entities = ['', '', '']\n", "\n", " generation_kwargs.update({'stop_sequences': callable_entities})\n",