From 347ca8cb5e3cbd95846558dfc8788ed73d4d68f9 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Fri, 19 Jul 2024 12:12:00 -0500 Subject: [PATCH] chore: Add Discontinuation Announcement Banner to PaLM Notebooks (#892) # Description Add PaLM Discontinuation message to PaLM-Specific notebooks with re-directs to updated Gemini Notebooks --- .gitleaksignore | 1 + language/README.md | 2 +- language/getting-started/intro_palm_api.ipynb | 2 ++ language/grounding/intro-grounding.ipynb | 2 ++ language/prompts/examples/chain_of_thought_react.ipynb | 4 +++- language/prompts/examples/ideation.ipynb | 2 ++ language/prompts/examples/question_answering.ipynb | 2 ++ language/prompts/examples/text_classification.ipynb | 2 ++ language/prompts/examples/text_extraction.ipynb | 2 ++ language/prompts/examples/text_summarization.ipynb | 2 ++ language/prompts/intro_prompt_design.ipynb | 2 ++ language/sample-apps/chat-streamlit/README.md | 2 ++ language/tuning/tuning_text_bison.ipynb | 2 ++ .../question_answering_documentai_vector_store_palm.ipynb | 2 ++ .../use-cases/document-qa/question_answering_documents.ipynb | 2 ++ .../document-qa/question_answering_documents_langchain.ipynb | 2 ++ ...estion_answering_documents_langchain_matching_engine.ipynb | 2 ++ .../summarization_large_documents.ipynb | 2 ++ .../summarization_large_documents_langchain.ipynb | 2 ++ .../summarization_with_documentai.ipynb | 2 ++ 20 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.gitleaksignore b/.gitleaksignore index eb2af7d585..0da0da72c9 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -1,3 +1,4 @@ /github/workspace/gemini/use-cases/education/use_cases_for_education.ipynb:aws-access-token:2802 /github/workspace/language/prompts/examples/chain_of_thought_react.ipynb:aws-access-token:308 /github/workspace/vision/use-cases/creating_high_quality_visual_assets_with_gemini_and_imagen.ipynb:facebook-page-access-token:309 +/github/workspace/language/prompts/examples/chain_of_thought_react.ipynb:aws-access-token:310 diff --git a/language/README.md b/language/README.md index dbefa07eb8..594fe716d7 100644 --- a/language/README.md +++ b/language/README.md @@ -1,6 +1,6 @@ # Generative AI - Language -Welcome to the Google Cloud [Generative AI](https://cloud.google.com/ai/generative-ai/) - Language repository. +> **NOTE:** This directory uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this directory](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/) for samples which use the latest Gemini model. ## Table of Contents diff --git a/language/getting-started/intro_palm_api.ipynb b/language/getting-started/intro_palm_api.ipynb index 87b8295bf4..8e9efececa 100644 --- a/language/getting-started/intro_palm_api.ipynb +++ b/language/getting-started/intro_palm_api.ipynb @@ -31,6 +31,8 @@ "source": [ "# Getting Started with the Vertex AI PaLM API & Python SDK\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/getting-started/intro_gemini_python.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/grounding/intro-grounding.ipynb b/language/grounding/intro-grounding.ipynb index 8a63b6f40c..feaa25ffb8 100644 --- a/language/grounding/intro-grounding.ipynb +++ b/language/grounding/intro-grounding.ipynb @@ -31,6 +31,8 @@ "source": [ "# Getting Started with Grounding in Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/grounding/intro-grounding-gemini.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/examples/chain_of_thought_react.ipynb b/language/prompts/examples/chain_of_thought_react.ipynb index 5ba3a5be19..4fc9433709 100644 --- a/language/prompts/examples/chain_of_thought_react.ipynb +++ b/language/prompts/examples/chain_of_thought_react.ipynb @@ -27,7 +27,9 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# Chain of Thought & ReAct" + "# Chain of Thought & ReAct\n", + "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/chain_of_thought_react.ipynb) for a version which uses the latest Gemini model." ] }, { diff --git a/language/prompts/examples/ideation.ipynb b/language/prompts/examples/ideation.ipynb index 9ccff61088..be33cd8a7f 100644 --- a/language/prompts/examples/ideation.ipynb +++ b/language/prompts/examples/ideation.ipynb @@ -31,6 +31,8 @@ "source": [ "# Ideation with Generative Models on Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/ideation.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/examples/question_answering.ipynb b/language/prompts/examples/question_answering.ipynb index 4b7ce68032..b3173f570c 100644 --- a/language/prompts/examples/question_answering.ipynb +++ b/language/prompts/examples/question_answering.ipynb @@ -31,6 +31,8 @@ "source": [ "# Question Answering with Generative Models on Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/question_answering.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/examples/text_classification.ipynb b/language/prompts/examples/text_classification.ipynb index b175abdf37..a54e8ed413 100644 --- a/language/prompts/examples/text_classification.ipynb +++ b/language/prompts/examples/text_classification.ipynb @@ -31,6 +31,8 @@ "source": [ "# Text Classification with Generative Models on Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/text_classification.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/examples/text_extraction.ipynb b/language/prompts/examples/text_extraction.ipynb index 313b82518d..c057f21dd7 100644 --- a/language/prompts/examples/text_extraction.ipynb +++ b/language/prompts/examples/text_extraction.ipynb @@ -31,6 +31,8 @@ "source": [ "# Text Extraction with Generative Models on Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/text_extraction.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/examples/text_summarization.ipynb b/language/prompts/examples/text_summarization.ipynb index edc89012fa..6c8e4c81ec 100644 --- a/language/prompts/examples/text_summarization.ipynb +++ b/language/prompts/examples/text_summarization.ipynb @@ -31,6 +31,8 @@ "source": [ "# Text Summarization with Generative Models on Vertex AI\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/examples/text_summarization.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/prompts/intro_prompt_design.ipynb b/language/prompts/intro_prompt_design.ipynb index b1fe85fa40..17bc5588d6 100644 --- a/language/prompts/intro_prompt_design.ipynb +++ b/language/prompts/intro_prompt_design.ipynb @@ -31,6 +31,8 @@ "source": [ "# Prompt Design - Best Practices\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/prompts/intro_prompt_design.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/sample-apps/chat-streamlit/README.md b/language/sample-apps/chat-streamlit/README.md index 71c5deaeac..dab78ed315 100644 --- a/language/sample-apps/chat-streamlit/README.md +++ b/language/sample-apps/chat-streamlit/README.md @@ -1,5 +1,7 @@ # Cloud Run application utilizing Streamlit Framework that demonstrates working with Vertex AI API +> **NOTE:** This example uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated code](https://github.com/GoogleCloudPlatform/generative-ai/tree/main/gemini/sample-apps/gemini-streamlit-cloudrun) for a version which uses the latest Gemini model. + | | | | --------- | -------------------------------------------- | | Author(s) | [Romin Irani](https://github.com/rominirani) | diff --git a/language/tuning/tuning_text_bison.ipynb b/language/tuning/tuning_text_bison.ipynb index 4d28cdfcd2..5ed1906941 100644 --- a/language/tuning/tuning_text_bison.ipynb +++ b/language/tuning/tuning_text_bison.ipynb @@ -31,6 +31,8 @@ "source": [ "# Tuning and deploy a foundation model\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/tuning/gemini_supervised_tuning_qa.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-qa/question_answering_documentai_vector_store_palm.ipynb b/language/use-cases/document-qa/question_answering_documentai_vector_store_palm.ipynb index fb25b71ff9..17c4cbe949 100644 --- a/language/use-cases/document-qa/question_answering_documentai_vector_store_palm.ipynb +++ b/language/use-cases/document-qa/question_answering_documentai_vector_store_palm.ipynb @@ -33,6 +33,8 @@ "source": [ "# Question answering with Documents using Document AI, Pandas, and PaLM\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/retrieval-augmented-generation/intro_multimodal_rag.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-qa/question_answering_documents.ipynb b/language/use-cases/document-qa/question_answering_documents.ipynb index f152a47975..366affe8be 100644 --- a/language/use-cases/document-qa/question_answering_documents.ipynb +++ b/language/use-cases/document-qa/question_answering_documents.ipynb @@ -31,6 +31,8 @@ "source": [ "# Question Answering with Large Documents\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/document-processing/document_processing.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-qa/question_answering_documents_langchain.ipynb b/language/use-cases/document-qa/question_answering_documents_langchain.ipynb index 245a3aff48..74f50812aa 100644 --- a/language/use-cases/document-qa/question_answering_documents_langchain.ipynb +++ b/language/use-cases/document-qa/question_answering_documents_langchain.ipynb @@ -31,6 +31,8 @@ "source": [ "# Question Answering with Large Documents using LangChain 🦜🔗\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/retrieval-augmented-generation/multimodal_rag_langchain.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-qa/question_answering_documents_langchain_matching_engine.ipynb b/language/use-cases/document-qa/question_answering_documents_langchain_matching_engine.ipynb index fc645975e5..b64af84add 100644 --- a/language/use-cases/document-qa/question_answering_documents_langchain_matching_engine.ipynb +++ b/language/use-cases/document-qa/question_answering_documents_langchain_matching_engine.ipynb @@ -31,6 +31,8 @@ "source": [ "# Question Answering with Documents using LangChain 🦜️🔗 and Vertex AI Matching Engine\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/retrieval-augmented-generation/intro_multimodal_rag.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-summarization/summarization_large_documents.ipynb b/language/use-cases/document-summarization/summarization_large_documents.ipynb index 7a54fb8790..46652e2bcc 100644 --- a/language/use-cases/document-summarization/summarization_large_documents.ipynb +++ b/language/use-cases/document-summarization/summarization_large_documents.ipynb @@ -31,6 +31,8 @@ "source": [ "# Text Summarization of Large Documents\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/document-processing/document_processing.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-summarization/summarization_large_documents_langchain.ipynb b/language/use-cases/document-summarization/summarization_large_documents_langchain.ipynb index f16dbb1437..9a3177faf5 100644 --- a/language/use-cases/document-summarization/summarization_large_documents_langchain.ipynb +++ b/language/use-cases/document-summarization/summarization_large_documents_langchain.ipynb @@ -31,6 +31,8 @@ "source": [ "# Text Summarization of Large Documents using LangChain 🦜🔗\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/document-processing/document_processing.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n", diff --git a/language/use-cases/document-summarization/summarization_with_documentai.ipynb b/language/use-cases/document-summarization/summarization_with_documentai.ipynb index 5ff7c15730..9550f23e8e 100644 --- a/language/use-cases/document-summarization/summarization_with_documentai.ipynb +++ b/language/use-cases/document-summarization/summarization_with_documentai.ipynb @@ -32,6 +32,8 @@ "source": [ "# Summarization with Large Documents using Document AI and PaLM APIs\n", "\n", + "> **NOTE:** This notebook uses the PaLM generative model, which will reach its [discontinuation date in October 2024](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text#model_versions). Please refer to [this updated notebook](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/gemini/use-cases/document-processing/document_processing.ipynb) for a version which uses the latest Gemini model.\n", + "\n", "\n", "
\n", " \n",