Skip to content

Commit f2cd674

Browse files
authored
Merge branch 'google:main' into main
2 parents b6446bf + 4c31d43 commit f2cd674

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: >
8-
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please post on the [Google Developers Community](https://discord.gg/google-dev-community) Discord server's #palm-api channel instead. This is a great place to interact with developers, and to learn, share, and support each other.
8+
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please visit the [Discourse forum](https://discuss.ai.google.dev/). This is a great place to interact with developers, and to learn, share, and support each other.
99
- type: textarea
1010
id: description
1111
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body:
55
- type: markdown
66
attributes:
77
value: >
8-
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please post on the [Google Developers Community](https://discord.gg/google-dev-community) Discord server's #palm-api channel instead. This is a great place to interact with developers, and to learn, share, and support each other.
8+
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please visit the [Discourse forum](https://discuss.ai.google.dev/). This is a great place to interact with developers, and to learn, share, and support each other.
99
- type: textarea
1010
id: description
1111
attributes:

examples/gemini/python/vectordb_with_chroma/vectordb_with_chroma.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@
800800
"source": [
801801
"## Next steps\n",
802802
"\n",
803-
"To learn more about how you can use the embeddings, check out the [examples](https://ai.google.dev/examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](../../../../site/en/tutorials/python_quickstart.ipynb)."
803+
"To learn more about how you can use the embeddings, check out the [examples](https://ai.google.dev/examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python)."
804804
]
805805
}
806806
],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
"source": [
4949
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
5050
" <td>\n",
51-
" <a target=\"_blank\" href=\"https://ai.google.dev/tutorials/prompting_with_media\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
51+
" <a target=\"_blank\" href=\"https://ai.google.dev/gemini-api/docs/prompting_with_media\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
5252
" <td>\n",
53-
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/tutorials/prompting_with_media.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
53+
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/gemini-api/docs/prompting_with_media.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
5454
" </td>\n",
5555
" <td>\n",
56-
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/tutorials/prompting_with_media.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
56+
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/gemini-api/docs/prompting_with_media.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
5757
" </td>\n",
5858
"</table>"
5959
]

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"\n",
7373
"This notebook walks you through a workflow to improve an LLM's response by augmenting its knowledge with external text corpora and performing semantic information retrieval to answer questions using the Semantic Retriever and the Attributed Question & Answering (AQA) APIs of the [Generative Language API](../api/python/google/ai/generativelanguage).\n",
7474
"\n",
75-
"Note: This API is currently in [beta](/docs/api_versions) and is [only available in certain regions](../available_regions).\n"
75+
"Note: This API is currently in [beta](https://ai.google.dev/gemini-api/docs/api-versions) and is [only available in certain regions](https://ai.google.dev/gemini-api/docs/available-regions).\n"
7676
]
7777
},
7878
{
@@ -719,7 +719,7 @@
719719
"source": [
720720
"## Attributed Question-Answering\n",
721721
"\n",
722-
"Use the [`GenerateAnswer`](../api/python/google/ai/generativelanguage/GenerateAnswerRequest) method to perform Attributed Question-Answering over your document, corpus, or a set of passages.\n",
722+
"Use the [`GenerateAnswer`](https://ai.google.dev/api/python/google/ai/generativelanguage/GenerateAnswerRequest) method to perform Attributed Question-Answering over your document, corpus, or a set of passages.\n",
723723
"\n",
724724
"Attributed Question-Answering (AQA) refers to answering questions grounded to a given context and providing attributions(s), while minimizing hallucination.\n",
725725
"\n",
@@ -769,7 +769,7 @@
769769
"source": [
770770
"### AQA Helpful Tips\n",
771771
"\n",
772-
"For full API specifications, refer to the [`GenerateAnswerRequest` API Reference](../api/python/google/ai/generativelanguage/GenerateAnswerRequest).\n",
772+
"For full API specifications, refer to the [`GenerateAnswerRequest` API Reference](https://ai.google.dev/api/python/google/ai/generativelanguage/GenerateAnswerRequest).\n",
773773
"\n",
774774
"* *Passage length*: Up to 300 tokens per passage are recommended.\n",
775775
"* *Passage sorting*:\n",
@@ -870,7 +870,7 @@
870870
"source": [
871871
"## Share the corpus\n",
872872
"\n",
873-
"You can choose to share the corpus with others using the [`CreatePermissionRequest`](../api/python/google/ai/generativelanguage/CreatePermissionRequest) API.\n",
873+
"You can choose to share the corpus with others using the [`CreatePermissionRequest`](https://ai.google.dev/api/python/google/ai/generativelanguage/CreatePermissionRequest) API.\n",
874874
"\n",
875875
"Constraints:\n",
876876
"\n",
@@ -912,7 +912,7 @@
912912
"source": [
913913
"## Delete the corpus\n",
914914
"\n",
915-
"Use [`DeleteCorpusRequest`](../api/python/google/ai/generativelanguage/DeleteCorpusRequest) to delete a user corpus and all associated `Document`s & `Chunk`s.\n",
915+
"Use [`DeleteCorpusRequest`](https://ai.google.dev/api/python/google/ai/generativelanguage/DeleteCorpusRequest) to delete a user corpus and all associated `Document`s & `Chunk`s.\n",
916916
"\n",
917917
"Note that non-empty corpora will throw an error without specifying an `force=True` flag. If you set `force=True`, any `Chunk`s and objects related to this `Document` will also be deleted.\n",
918918
"\n",

site/en/gemini-api/tutorials/anomaly_detection.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"\n",
6969
"This tutorial demonstrates how to use the embeddings from the Gemini API to detect potential outliers in your dataset. You will visualize a subset of the 20 Newsgroup dataset using [t-SNE](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html){:.external} and detect outliers outside a particular radius of the central point of each categorical cluster.\n",
7070
"\n",
71-
"For more information on getting started with embeddings generated from the Gemini API, check out the [Python quickstart](../tutorials/python_quickstart.ipynb#use_embeddings).\n",
71+
"For more information on getting started with embeddings generated from the Gemini API, check out the [Python quickstart](https://ai.google.dev/tutorials/python_quickstart#use_embeddings).\n",
7272
"\n",
7373
"## Prerequisites\n",
7474
"\n",
@@ -162,7 +162,7 @@
162162
"source": [
163163
"Key Point: Next, you will choose a model. Any embedding model will work for this tutorial, but for real applications it's important to choose a specific model and stick with it. The outputs of different models are not compatible with each other.\n",
164164
"\n",
165-
"**Note**: At this time, the Gemini API is [only available in certain regions](https://developers.generativeai.google/available_regions)."
165+
"**Note**: At this time, the Gemini API is [only available in certain regions](https://ai.google.dev/available_regions)."
166166
]
167167
},
168168
{
@@ -2934,7 +2934,7 @@
29342934
"\n",
29352935
"You've now created an anomaly detector using embeddings! Try using your own textual data to visualize them as embeddings, and choose some bound such that you can detect outliers. You can perform dimensionality reduction in order to complete the visualization step. Note that t-SNE is good at clustering inputs, but can take a longer time to converge or might get stuck at local minima. If you run into this issue, another technique you could consider are [principal components analysis (PCA)](https://en.wikipedia.org/wiki/Principal_component_analysis){:.external}.\n",
29362936
"\n",
2937-
"To learn how to use other services in the Gemini API, visit the [Python quickstart](../tutorials/python_quickstart.ipynb).\n",
2937+
"To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/tutorials/python_quickstart).\n",
29382938
"\n",
29392939
"To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to create them from scratch, see TensorFlow's [Word Embeddings](https://www.tensorflow.org/text/guide/word_embeddings){:.external} tutorial."
29402940
]

site/en/gemini-api/tutorials/clustering_with_embeddings.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"\n",
7070
"This tutorial demonstrates how to visualize and perform clustering with the embeddings from the Gemini API. You will visualize a subset of the 20 Newsgroup dataset using [t-SNE](https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html){:.external} and cluster that subset using the KMeans algorithm.\n",
7171
"\n",
72-
"For more information on getting started with embeddings generated from the Gemini API, check out the [Python quickstart](../tutorials/python_quickstart.ipynb#use_embeddings).\n",
72+
"For more information on getting started with embeddings generated from the Gemini API, check out the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python#use_embeddings).\n",
7373
"\n",
7474
"## Prerequisites\n",
7575
"\n",
@@ -165,7 +165,7 @@
165165
"source": [
166166
"Key Point: Next, you will choose a model. Any embedding model will work for this tutorial, but for real applications it's important to choose a specific model and stick with it. The outputs of different models are not compatible with each other.\n",
167167
"\n",
168-
"**Note**: At this time, the Gemini API is [only available in certain regions](https://developers.generativeai.google/available_regions)."
168+
"**Note**: At this time, the Gemini API is [only available in certain regions](https://ai.google.dev/gemini-api/docs/available-regions)."
169169
]
170170
},
171171
{
@@ -2857,7 +2857,7 @@
28572857
"\n",
28582858
"There are other clustering algorithms outside of KMeans as well, such as [density-based spatial clustering (DBSCAN)](https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html){:.external}.\n",
28592859
"\n",
2860-
"To learn how to use other services in the Gemini API, visit the [Python quickstart](../tutorials/python_quickstart.ipynb). To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to create them from scratch, see TensorFlow's [Word Embeddings](https://www.tensorflow.org/text/guide/word_embeddings){:.external} tutorial."
2860+
"To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python). To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to create them from scratch, see TensorFlow's [Word Embeddings](https://www.tensorflow.org/text/guide/word_embeddings){:.external} tutorial."
28612861
]
28622862
}
28632863
],

site/en/gemini-api/tutorials/document_search.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"source": [
160160
"Key Point: Next, you will choose a model. Any embedding model will work for this tutorial, but for real applications it's important to choose a specific model and stick with it. The outputs of different models are not compatible with each other.\n",
161161
"\n",
162-
"**Note**: At this time, the Gemini API is [only available in certain regions](https://developers.generativeai.google/available_regions)."
162+
"**Note**: At this time, the Gemini API is [only available in certain regions](https://ai.google.dev/gemini-api/docs/available-regions)."
163163
]
164164
},
165165
{
@@ -1191,7 +1191,7 @@
11911191
},
11921192
"outputs": [],
11931193
"source": [
1194-
"model = genai.GenerativeModel('gemini-ultra')\n",
1194+
"model = genai.GenerativeModel('gemini-1.5-pro-latest')\n",
11951195
"answer = model.generate_content(prompt)"
11961196
]
11971197
},
@@ -1228,7 +1228,7 @@
12281228
"source": [
12291229
"## Next steps\n",
12301230
"\n",
1231-
"To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](../tutorials/python_quickstart.ipynb)."
1231+
"To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python)."
12321232
]
12331233
}
12341234
],

site/en/gemini-api/tutorials/text_classifier_embeddings.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@
15371537
"source": [
15381538
"## Next steps\n",
15391539
"\n",
1540-
"To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](../tutorials/python_quickstart.ipynb)."
1540+
"To learn more about how you can use the embeddings, check out the [examples](../examples?keywords=embed) available. To learn how to use other services in the Gemini API, visit the [Python quickstart](https://ai.google.dev/gemini-api/docs/get-started/python)."
15411541
]
15421542
}
15431543
],

0 commit comments

Comments
 (0)