Skip to content

fix(docs): correct typos and clarify docstrings in react_gemini_prompting.ipynb #574

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 4 additions & 4 deletions site/en/docs/react_gemini_prompting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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 = ['</search>', '</lookup>', '</finish>']\n",
"\n",
" generation_kwargs.update({'stop_sequences': callable_entities})\n",
Expand Down