Skip to content
Merged
Show file tree
Hide file tree
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 .github/workflows/notebooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ jobs:
echo "WARNING: If the button_colab check fails for you, make sure you have <table class=\"tfo-notebook-buttons\"...>"
echo "Lint check with nblint:"
python3 -m tensorflow_docs.tools.nblint \
--styles=google,tensorflow \
--styles=google,gemini_cookbook \
--arg=repo:google-gemini/cookbook \
--arg=branch:main \
--exclude_lint=tensorflow::button_download \
--exclude_lint=tensorflow::button_website \
--exclude_lint=gemini_cookbook::button_download \
--exclude_lint=gemini_cookbook::button_website \
--arg=base_url:https://ai.google.dev/ \
--exclude_lint=tensorflow::button_github \
--exclude_lint=gemini_cookbook::button_github \
"${filtered_notebooks[@]}"
fi
6 changes: 1 addition & 5 deletions examples/Agents_Function_Calling_Barista_Bot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
"source": [
"# Gemini API: Agents and Automatic Function Calling with Barista Bot\n",
"\n",
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Agents_Function_Calling_Barista_Bot.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Agents_Function_Calling_Barista_Bot.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
26 changes: 11 additions & 15 deletions examples/Analyze_a_Video_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 26,
"execution_count": null,
"metadata": {
"cellView": "form",
"id": "LCJL7_hQO3jW"
Expand Down Expand Up @@ -48,16 +48,12 @@
"id": "dJY5C59gPf-m"
},
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Analyze_a_Video_Classification.ipynb\"><img src = \"../images/colab_logo_32px.png\"/>Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Analyze_a_Video_Classification.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": null,
"metadata": {
"id": "NwP4PBGWoQiJ"
},
Expand All @@ -79,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 37,
"execution_count": null,
"metadata": {
"id": "yGjQlQ9hoSOk"
},
Expand Down Expand Up @@ -107,7 +103,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": null,
"metadata": {
"id": "M794IEOG7QzI"
},
Expand Down Expand Up @@ -148,7 +144,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": null,
"metadata": {
"id": "efnp0oAq7kYx"
},
Expand All @@ -160,7 +156,7 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": null,
"metadata": {
"id": "ij9-oG3g7yyj"
},
Expand Down Expand Up @@ -196,7 +192,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"metadata": {
"id": "vbnD4S2avE0k"
},
Expand Down Expand Up @@ -241,7 +237,7 @@
},
{
"cell_type": "code",
"execution_count": 42,
"execution_count": null,
"metadata": {
"id": "Zhnsiy9O8OXG"
},
Expand All @@ -255,7 +251,7 @@
},
{
"cell_type": "code",
"execution_count": 43,
"execution_count": null,
"metadata": {
"id": "PWLK7TEi7_mP"
},
Expand Down Expand Up @@ -302,7 +298,7 @@
},
{
"cell_type": "code",
"execution_count": 44,
"execution_count": null,
"metadata": {
"id": "SomiSVmu8Czk"
},
Expand Down
6 changes: 1 addition & 5 deletions examples/Analyze_a_Video_Historic_Event_Recognition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
"id": "dJY5C59gPf-m"
},
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Analyze_a_Video_Historic_Event_Recognition.ipynb\"><img src = \"../images/colab_logo_32px.png\"/>Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Analyze_a_Video_Historic_Event_Recognition.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
8 changes: 2 additions & 6 deletions examples/Analyze_a_Video_Summarization.ipynb

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions examples/Animated_Story_Video_Generation_gemini.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@
"id": "MfBg1C5NB3X0"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Animated_Story_Video_Generation_gemini.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>\n"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Animated_Story_Video_Generation_gemini.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
13 changes: 5 additions & 8 deletions examples/Anomaly_detection_with_embeddings.ipynb

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions examples/Apollo_11.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "wnQ_LVlzIeXo"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Apollo_11.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Apollo_11.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Book_illustration.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "DR4Ti6Q0QKIl"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Book_illustration.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Book_illustration.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
44 changes: 32 additions & 12 deletions examples/Browser_as_a_tool.ipynb

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions examples/Classify_text_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "wUmTFPw2W_UD"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Classify_text_with_embeddings.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Classify_text_with_embeddings.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Entity_Extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@
"id": "b04e5041d418"
},
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Entity_Extraction.ipynb\"><img src = \"../images/colab_logo_32px.png\"/>Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Entity_Extraction.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Guess_the_shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
"source": [
"# Guess the shape: Triangle, square, pentagon, ?\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Guess_the_shape.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Guess_the_shape.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/LiveAPI_plotting_and_mapping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "X_mg5MhCkVpK"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/LiveAPI_plotting_and_mapping.ipynb\"><img src=\"https://ai.google.dev/site-assets/images/docs/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/LiveAPI_plotting_and_mapping.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Market_a_Jet_Backpack.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
"\n",
"This notebook contains a code example of using the Gemini API to analyze a a product sketch (in this case, a drawing of a Jet Backpack), create a marketing campaign for it, and output taglines in JSON format.\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Market_a_Jet_Backpack.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Market_a_Jet_Backpack.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Opossum_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
"source": [
"# Opossum search\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Opossum_search.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Opossum_search.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
"\n",
"This notebook demonstrates how you can convert a PDF file so that it can be read by the Gemini API.\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Pdf_structured_outputs_on_invoices_and_forms.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Search_Wikipedia_using_ReAct.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "Pk4Y-PKWc3MU"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_Wikipedia_using_ReAct.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_Wikipedia_using_ReAct.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Search_grounding_for_research_report.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "CeJyB7rG82ph"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_grounding_for_research_report.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_grounding_for_research_report.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Search_reranking_using_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "k5n0sCc_fKcB"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_reranking_using_embeddings.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Search_reranking_using_embeddings.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Spatial_understanding_3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "CeJyB7rG82ph"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Spatial_understanding_3d.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Spatial_understanding_3d.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Story_Writing_with_Prompt_Chaining.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
"source": [
"# Prompt Chaining and Iterative Generation for Story Writing\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Story_Writing_with_Prompt_Chaining.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Story_Writing_with_Prompt_Chaining.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Tag_and_caption_images.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@
"id": "dJY5C59gPf-m"
},
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Tag_and_caption_images.ipynb\"><img src = \"../images/colab_logo_32px.png\"/>Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Tag_and_caption_images.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Talk_to_documents_with_embeddings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "kIkJ7zgADMlP"
},
"source": [
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Talk_to_documents_with_embeddings.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Talk_to_documents_with_embeddings.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Translate_a_Public_Domain_Book.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@
"id": "D7KnozoY6B3I"
},
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Translate_a_Public_Domain_Book.ipynb\"><img src = \"../images/colab_logo_32px.png\"/>Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Translate_a_Public_Domain_Book.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
6 changes: 1 addition & 5 deletions examples/Upload_files_to_Colab.ipynb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check warning on line 1 in examples/Upload_files_to_Colab.ipynb

View workflow job for this annotation

GitHub Actions / new-example-links-in-examples-readme

Link to 'examples/Upload_files_to_Colab.ipynb' not found in a README.md, please add one
"cells": [
{
"cell_type": "markdown",
Expand Down Expand Up @@ -39,11 +39,7 @@
"source": [
"# Upload files to Google Colab\n",
"\n",
"<table align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Upload_files_to_Colab.ipynb\"><img src=\"../images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
"</table>"
"<a target=\"_blank\" href=\"https://colab.research.google.com/github/google-gemini/cookbook/blob/main/examples/Upload_files_to_Colab.ipynb\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" height=30/>"
]
},
{
Expand Down
Loading
Loading