|
72 | 72 | "\n", |
73 | 73 | "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", |
74 | 74 | "\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" |
76 | 76 | ] |
77 | 77 | }, |
78 | 78 | { |
|
719 | 719 | "source": [ |
720 | 720 | "## Attributed Question-Answering\n", |
721 | 721 | "\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", |
723 | 723 | "\n", |
724 | 724 | "Attributed Question-Answering (AQA) refers to answering questions grounded to a given context and providing attributions(s), while minimizing hallucination.\n", |
725 | 725 | "\n", |
|
769 | 769 | "source": [ |
770 | 770 | "### AQA Helpful Tips\n", |
771 | 771 | "\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", |
773 | 773 | "\n", |
774 | 774 | "* *Passage length*: Up to 300 tokens per passage are recommended.\n", |
775 | 775 | "* *Passage sorting*:\n", |
|
870 | 870 | "source": [ |
871 | 871 | "## Share the corpus\n", |
872 | 872 | "\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", |
874 | 874 | "\n", |
875 | 875 | "Constraints:\n", |
876 | 876 | "\n", |
|
912 | 912 | "source": [ |
913 | 913 | "## Delete the corpus\n", |
914 | 914 | "\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", |
916 | 916 | "\n", |
917 | 917 | "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", |
918 | 918 | "\n", |
|
0 commit comments