Skip to content

Commit

Permalink
Update semantic_retrieval.ipynb (#397)
Browse files Browse the repository at this point in the history
Update links
  • Loading branch information
JosBecker authored May 2, 2024
1 parent e032ce0 commit 4c31d43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions site/en/gemini-api/docs/semantic_retrieval.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"\n",
"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",
"\n",
"Note: This API is currently in [beta](/docs/api_versions) and is [only available in certain regions](../available_regions).\n"
"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"
]
},
{
Expand Down Expand Up @@ -719,7 +719,7 @@
"source": [
"## Attributed Question-Answering\n",
"\n",
"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",
"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",
"\n",
"Attributed Question-Answering (AQA) refers to answering questions grounded to a given context and providing attributions(s), while minimizing hallucination.\n",
"\n",
Expand Down Expand Up @@ -769,7 +769,7 @@
"source": [
"### AQA Helpful Tips\n",
"\n",
"For full API specifications, refer to the [`GenerateAnswerRequest` API Reference](../api/python/google/ai/generativelanguage/GenerateAnswerRequest).\n",
"For full API specifications, refer to the [`GenerateAnswerRequest` API Reference](https://ai.google.dev/api/python/google/ai/generativelanguage/GenerateAnswerRequest).\n",
"\n",
"* *Passage length*: Up to 300 tokens per passage are recommended.\n",
"* *Passage sorting*:\n",
Expand Down Expand Up @@ -870,7 +870,7 @@
"source": [
"## Share the corpus\n",
"\n",
"You can choose to share the corpus with others using the [`CreatePermissionRequest`](../api/python/google/ai/generativelanguage/CreatePermissionRequest) API.\n",
"You can choose to share the corpus with others using the [`CreatePermissionRequest`](https://ai.google.dev/api/python/google/ai/generativelanguage/CreatePermissionRequest) API.\n",
"\n",
"Constraints:\n",
"\n",
Expand Down Expand Up @@ -912,7 +912,7 @@
"source": [
"## Delete the corpus\n",
"\n",
"Use [`DeleteCorpusRequest`](../api/python/google/ai/generativelanguage/DeleteCorpusRequest) to delete a user corpus and all associated `Document`s & `Chunk`s.\n",
"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",
"\n",
"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",
"\n",
Expand Down

0 comments on commit 4c31d43

Please sign in to comment.