Skip to content

docs: updated multimodal notebook instructions #1745

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

Merged
merged 2 commits into from
May 16, 2025
Merged
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
34 changes: 23 additions & 11 deletions notebooks/multimodal/multimodal_dataframe.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,22 @@
"### Setup"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Install the latest bigframes package if bigframes version < 2.4.0"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# !pip install bigframes --upgrade"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -84,10 +100,13 @@
},
"outputs": [],
"source": [
"PROJECT = \"bigframes-dev\" # replace with your project, project needs to be allowlisted go/bq-multimodal-allowlist (internal)\n",
"# User must have https://cloud.google.com/bigquery/docs/use-bigquery-dataframes#permissions to use bigframes, BQ connection admin/user to create/use connections, BQ ObjRef permissions for ObjectRef and BQ routines permissions for using transform functions.\n",
"# Or simply has BQ Admin role for all.\n",
"OUTPUT_BUCKET = \"bigframes_blob_test\" # replace with your GCS bucket. The connection (or bigframes-default-connection of the project) must have read/write permission to the bucket.\n",
"PROJECT = \"bigframes-dev\" # replace with your project. \n",
"# Refer to https://cloud.google.com/bigquery/docs/multimodal-data-dataframes-tutorial#required_roles for your required permissions\n",
"\n",
"OUTPUT_BUCKET = \"bigframes_blob_test\" # replace with your GCS bucket. \n",
"# The connection (or bigframes-default-connection of the project) must have read/write permission to the bucket. \n",
"# Refer to https://cloud.google.com/bigquery/docs/multimodal-data-dataframes-tutorial#grant-permissions for setting up connection service account permissions.\n",
"# In this Notebook it uses bigframes-default-connection by default. You can also bring in your own connections in each method.\n",
"\n",
"import bigframes\n",
"# Setup project\n",
Expand Down Expand Up @@ -414,13 +433,6 @@
"chunked = df_pdf[\"chunked\"].explode()\n",
"chunked"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down