Skip to content

Commit e0aa9cc

Browse files
authored
chore: improve wording of ai notebook (#2161)
1 parent 8714977 commit e0aa9cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

notebooks/generative_ai/ai_functions.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"id": "aee05821",
5757
"metadata": {},
5858
"source": [
59-
"This notebook provides a brief introduction to how to use BigFrames AI functions"
59+
"This notebook provides a brief introduction to AI functions in BigQuery Dataframes."
6060
]
6161
},
6262
{
@@ -145,7 +145,7 @@
145145
"id": "b606c51f",
146146
"metadata": {},
147147
"source": [
148-
"You can also include additional model parameters into your function call, as long as they satisfy the structure of `generateContent` [request body format](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent#request-body). In the next example, you use `maxOutputTokens` to limite the length of the generated content."
148+
"You can also include additional model parameters into your function call, as long as they conform to the structure of `generateContent` [request body format](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.endpoints/generateContent#request-body). In the next example, you use `maxOutputTokens` to limit the length of the generated content."
149149
]
150150
},
151151
{
@@ -186,7 +186,7 @@
186186
"source": [
187187
"The answers are cut short as expected.\n",
188188
"\n",
189-
"In addition to `ai.generate`, you can use `ai.generate_bool`, `ai.generate_int`, and `ai.generate_double` for other type of outputs."
189+
"In addition to `ai.generate`, you can use `ai.generate_bool`, `ai.generate_int`, and `ai.generate_double` for other output types."
190190
]
191191
},
192192
{
@@ -196,7 +196,7 @@
196196
"source": [
197197
"## ai.if_\n",
198198
"\n",
199-
"`ai.if_` generates a series of booleans, unlike `ai.generate_bool` where you get a series of structs. It's a handy tool for filtering your data. not only because it directly returns a boolean, but also because it provides more optimization during data processing. Here is an example of using `ai.if_`:"
199+
"`ai.if_` generates a series of booleans. It's a handy tool for joining and filtering your data, not only because it directly returns boolean values, but also because it provides more optimization during data processing. Here is an example of using `ai.if_`:"
200200
]
201201
},
202202
{
@@ -284,7 +284,7 @@
284284
"id": "63b5a59f",
285285
"metadata": {},
286286
"source": [
287-
"`ai.score` ranks your input based on the prompt. You can then sort your data based on their ranks. For example:"
287+
"`ai.score` ranks your input based on the prompt and assigns a double value (i.e. a score) to each item. You can then sort your data based on their scores. For example:"
288288
]
289289
},
290290
{
@@ -460,7 +460,7 @@
460460
"id": "9e4037bc",
461461
"metadata": {},
462462
"source": [
463-
"Note that this function can only return the values that are present in your provided categories. If your categories do not cover all cases, your will get wrong answers:"
463+
"Note that this function can only return the values that are provided in the `categories` argument. If your categories do not cover all cases, your may get wrong answers:"
464464
]
465465
},
466466
{

0 commit comments

Comments
 (0)