Skip to content

Commit 321157e

Browse files
authored
Fix broken links in notebooks (#378)
* Fix REST links too * Replace #scrollTo with anchors that work on the site
1 parent 428d2ea commit 321157e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

site/en/gemini-api/docs/model-tuning/rest.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"your tuned models this needs stricter access controls than API-Keys can provide.\n",
106106
"\n",
107107
"Before you can run this tutorial, you'll need to\n",
108-
"[setup OAuth for your project](oauth_quickstart.ipynb).\n",
108+
"[setup OAuth for your project](https://ai.google.dev/gemini-api/docs/oauth).\n",
109109
"\n",
110110
"\n",
111111
"In Colab the easiest wat to get setup is to copy the contents of your `client_secret.json` file into Colab's \"Secrets manager\" (under the key icon in the left panel) with the secret name `CLIENT_SECRET`."
@@ -553,7 +553,7 @@
553553
"source": [
554554
"The output from your model may or may not be correct. If the tuned model isn't performing up to your required standards, you can try adding more high quality examples, tweaking the hyperparameters or adding a preamble to your examples. You can even create another tuned model based on the first one you created.\n",
555555
"\n",
556-
"See the [tuning guide](../guide/model_tuning_guidance) for more guidance on improving performance."
556+
"See the [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for more guidance on improving performance."
557557
]
558558
},
559559
{

site/en/gemini-api/docs/semantic_retrieval.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
"source": [
114114
"## Authenticate\n",
115115
"\n",
116-
"The Semantic Retriever API lets you perform semantic search on your own data. Since it's **your data**, this needs stricter access controls than API keys. Authenticate with OAuth with [service accounts](#scrollTo=eLjhFIOQ7_Dk) or through your [user credentials](#scrollTo=9YGv4x9ehLba).\n",
116+
"The Semantic Retriever API lets you perform semantic search on your own data. Since it's **your data**, this needs stricter access controls than API keys. Authenticate with OAuth with [service accounts](#service-oauth) or through your [user credentials](#user-oauth).\n",
117117
"\n",
118118
"This quickstart uses a simplified authentication approach meant for a testing environment, and service account setups are typically easier to start from. For a production environment, learn about [authentication and authorization](https://developers.google.com/workspace/guides/auth-overview){:.external} before choosing the [access credentials](https://developers.google.com/workspace/guides/create-credentials#choose_the_access_credential_that_is_right_for_you){:.external} that are appropriate for your app.\n"
119119
]
@@ -124,7 +124,7 @@
124124
"id": "eLjhFIOQ7_Dk"
125125
},
126126
"source": [
127-
"### Setup OAuth using service accounts\n",
127+
"### Setup OAuth using service accounts {:#service-oauth}\n",
128128
"\n",
129129
"Follow the steps below to setup OAuth using service accounts:\n",
130130
"\n",
@@ -204,7 +204,7 @@
204204
"id": "4EQJD2PWD56T"
205205
},
206206
"source": [
207-
"## Create a corpus\n",
207+
"## Create a corpus {:#create-corpus}\n",
208208
"\n",
209209
"The Semantic Retriever API lets you define up to 5 custom text corpora per project. You can specify either of the following fields while defining your corpora:\n",
210210
"\n",
@@ -952,7 +952,7 @@
952952
"id": "9YGv4x9ehLba"
953953
},
954954
"source": [
955-
"## Appendix: Setup OAuth with user credentials\n",
955+
"## Appendix: Setup OAuth with user credentials {:#user-oauth}\n",
956956
"\n",
957957
"Follow the steps below from the [OAuth Quickstart](https://ai.google.dev/docs/oauth_quickstart) to setup OAuth authentication.\n",
958958
"\n",
@@ -995,7 +995,7 @@
995995
"id": "lybTOlN9gz0I"
996996
},
997997
"source": [
998-
"Initialize the client library and re-run the notebook starting from [Create a corpus](#scrollTo=4EQJD2PWD56T)."
998+
"Initialize the client library and re-run the notebook starting from [Create a corpus](#create-corpus)."
999999
]
10001000
},
10011001
{

0 commit comments

Comments
 (0)