{"id":13434211,"url":"https://github.com/GoogleCloudPlatform/generative-ai","last_synced_at":"2025-03-17T14:30:58.943Z","repository":{"id":163993689,"uuid":"636693030","full_name":"GoogleCloudPlatform/generative-ai","owner":"GoogleCloudPlatform","description":"Sample code and notebooks for Generative AI on Google Cloud, with Gemini on Vertex AI","archived":false,"fork":false,"pushed_at":"2025-02-28T23:55:28.000Z","size":347655,"stargazers_count":9602,"open_issues_count":24,"forks_count":2674,"subscribers_count":192,"default_branch":"main","last_synced_at":"2025-03-01T09:23:49.718Z","etag":null,"topics":["gemini","gemini-api","generative-ai","google","google-cloud","google-gemini","langchain","llm","palm-api","vertex-ai","vertex-ai-gemini-api","vertexai"],"latest_commit_sha":null,"homepage":"https://cloud.google.com/vertex-ai/docs/generative-ai/learn/overview","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleCloudPlatform.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-05T12:31:07.000Z","updated_at":"2025-03-01T07:01:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"85c5caa1-9155-48fa-9d1d-af2a735b5842","html_url":"https://github.com/GoogleCloudPlatform/generative-ai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fgenerative-ai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fgenerative-ai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fgenerative-ai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleCloudPlatform%2Fgenerative-ai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleCloudPlatform","download_url":"https://codeload.github.com/GoogleCloudPlatform/generative-ai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243891249,"owners_count":20364575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gemini","gemini-api","generative-ai","google","google-cloud","google-gemini","langchain","llm","palm-api","vertex-ai","vertex-ai-gemini-api","vertexai"],"created_at":"2024-07-31T02:01:49.966Z","updated_at":"2025-03-17T14:30:58.937Z","avatar_url":"https://github.com/GoogleCloudPlatform.png","language":"Jupyter Notebook","readme":"# Generative AI\n\n\u003e NOTE: [Gemini 2.0 Flash-Lite and Gemini 2.0 Pro](https://cloud.google.com/vertex-ai/generative-ai/docs/gemini-v2) have been released!\n\u003e\n\u003e Here are the latest notebooks and demos using the new models:\n\u003e\n\u003e - [Intro to Gemini 2.0 Pro](gemini/getting-started/intro_gemini_2_0_pro.ipynb)\n\u003e - [Intro to Gemini 2.0 Flash-Lite](gemini/getting-started/intro_gemini_2_0_flash_lite.ipynb)\n\u003e - [Intro to Gemini 2.0 Flash](gemini/getting-started/intro_gemini_2_0_flash.ipynb)\n\u003e - [Intro to Multimodal Live API with Gen AI SDK](gemini/multimodal-live-api/intro_multimodal_live_api_genai_sdk.ipynb)\n\u003e - [Intro to Gemini 2.0 Thinking](gemini/getting-started/intro_gemini_2_0_flash_thinking_mode.ipynb)\n\u003e - [Intro to Code Execution](gemini/code-execution/intro_code_execution.ipynb)\n\u003e - [Multimodal Live API Demo App](gemini/multimodal-live-api/websocket-demo-app/)\n\n\u003c!-- markdownlint-disable MD033 --\u003e\n\n\u003ca href=\"gemini\"\u003e\u003cimg src=\"https://lh3.googleusercontent.com/eDr6pYKs1tT0iK0nt3pPhvVlP2Wn96fbGqbWgBAARRZ7isej037g_tWobjV8zQkxOsWzJuEH8p-fksczXUOeqxGZZIo_HUCdkn8q-a4fuwATD7Q9Xrs=w2456-l100-sg-rj-c0xffffff\" style=\"width:35em\" alt=\"Welcome to the Gemini era\"\u003e\u003c/a\u003e\n\nThis repository contains notebooks, code samples, sample apps, and other resources that demonstrate how to use, develop and manage generative AI workflows using [Generative AI on Google Cloud](https://cloud.google.com/ai/generative-ai), powered by [Vertex AI](https://cloud.google.com/vertex-ai).\n\nFor more Vertex AI samples, please visit the [Vertex AI samples GitHub repository](https://github.com/GoogleCloudPlatform/vertex-ai-samples/).\n\n## Using this repository\n\n[![Applied AI Summit: The cloud toolkit for generative AI](https://img.youtube.com/vi/xT7WW2SKLfE/hqdefault.jpg)](https://www.youtube.com/watch?v=xT7WW2SKLfE)\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003e\u003c/th\u003e\n    \u003cth style=\"text-align: center;\"\u003eDescription\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://storage.googleapis.com/github-repo/img/gemini/Spark__Gradient_Alpha_100px.gif\" width=\"45px\" alt=\"Gemini\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"gemini/\"\u003e\u003ccode\u003egemini/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Discover Gemini through starter notebooks, use cases, function calling, sample apps, and more.\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://www.gstatic.com/images/branding/gcpiconscolors/service_discovery/v1/24px.svg\" width=\"40px\" alt=\"Search\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"search/\"\u003e\u003ccode\u003esearch/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eUse this folder if you're interested in using \u003ca href=\"https://cloud.google.com/enterprise-search\"\u003eVertex AI Search\u003c/a\u003e, a Google-managed solution to help you rapidly build search engines for websites and across enterprise data. (Formerly known as Enterprise Search on Generative AI App Builder).\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/nature_people/default/40px.svg\" alt=\"RAG Grounding\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"rag-grounding/\"\u003e\u003ccode\u003erag-grounding/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eUse this folder for information on Retrieval Augmented Generation (RAG) and Grounding with Vertex AI. This is an index of notebooks and samples across other directories focused on this topic.\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://www.gstatic.com/images/branding/gcpiconscolors/dialogflow_cx/v1/24px.svg\" width=\"40px\" alt=\"Conversation\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"conversation/\"\u003e\u003ccode\u003econversation/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eUse this folder if you're interested in using \u003ca href=\"https://cloud.google.com/generative-ai-app-builder\"\u003eVertex AI Conversation\u003c/a\u003e, a Google-managed solution to help you rapidly build chat bots for websites and across enterprise data. (Formerly known as Chat Apps on Generative AI App Builder).\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/edit_note/default/40px.svg\" alt=\"Language\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"language/\"\u003e\u003ccode\u003elanguage/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Use this folder if you're interested in building your own solutions from scratch using Google's language foundation models (Vertex AI PaLM API).\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/image/default/40px.svg\" alt=\"Vision\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"vision/\"\u003e\u003ccode\u003evision/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Use this folder if you're interested in building your own solutions from scratch using features from Imagen on Vertex AI (Vertex AI Imagen API).\n      These are the features that Imagen on Vertex AI offers:\n      \u003cul\u003e\n        \u003cli\u003eImage generation\u003c/li\u003e\n        \u003cli\u003eImage editing\u003c/li\u003e\n        \u003cli\u003eVisual captioning\u003c/li\u003e\n        \u003cli\u003eVisual question answering\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/mic/default/40px.svg\" alt=\"Speech\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"audio/\"\u003e\u003ccode\u003eaudio/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      Use this folder if you're interested in building your own solutions from scratch using features from Chirp, a version of Google's Universal Speech Model (USM) on Vertex AI (Vertex AI Chirp API).\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/build/default/40px.svg\" alt=\"Setup Env\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"setup-env/\"\u003e\u003ccode\u003esetup-env/\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eInstructions on how to set up Google Cloud, the Vertex AI Python SDK, and notebook environments on Google Colab and Vertex AI Workbench.\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003cimg src=\"https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/media_link/default/40px.svg\" alt=\"Resources\"\u003e\n      \u003cbr\u003e\n      \u003ca href=\"RESOURCES.md\"\u003e\u003ccode\u003eRESOURCES.md\u003c/code\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003eLearning resources (e.g. blogs, YouTube playlists) about Generative AI on Google Cloud.\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- markdownlint-enable MD033 --\u003e\n\n## Related Repositories\n\n- [🚀 Agent Starter Pack](https://github.com/GoogleCloudPlatform/agent-starter-pack)\n  - A collection of production-ready Generative AI Agent templates built for Google Cloud.\n  - It accelerates development by providing a holistic, production-ready solution, addressing common challenges (Deployment \u0026 Operations, Evaluation, Customization, Observability) in building and deploying Gen AI agents.\n- [Gemini Cookbook](https://github.com/google-gemini/cookbook/)\n- [Google Cloud Applied AI Engineering](https://github.com/GoogleCloudPlatform/applied-ai-engineering-samples)\n- [Generative AI for Marketing using Google Cloud](https://github.com/GoogleCloudPlatform/genai-for-marketing)\n- [Generative AI for Developer Productivity](https://github.com/GoogleCloudPlatform/genai-for-developers)\n- Vertex AI Core\n  - [Vertex AI Samples](https://github.com/GoogleCloudPlatform/vertex-ai-samples)\n  - [MLOps with Vertex AI](https://github.com/GoogleCloudPlatform/mlops-with-vertex-ai)\n  - [Developing NLP solutions with T5X and Vertex AI](https://github.com/GoogleCloudPlatform/t5x-on-vertex-ai)\n  - [AlphaFold batch inference with Vertex AI Pipelines](https://github.com/GoogleCloudPlatform/vertex-ai-alphafold-inference-pipeline)\n  - [Serving Spark ML models using Vertex AI](https://github.com/GoogleCloudPlatform/vertex-ai-spark-ml-serving)\n  - [Sensitive Data Protection (Cloud DLP) for Vertex AI Generative Models (PaLM2)](https://github.com/GoogleCloudPlatform/Sensitive-Data-Protection-for-Vertex-AI-PaLM2)\n- Conversational AI\n  - [Contact Center AI Samples](https://github.com/GoogleCloudPlatform/contact-center-ai-samples)\n  - [Reimagining Customer Experience 360](https://github.com/GoogleCloudPlatform/dialogflow-ccai-omnichannel)\n- Document AI\n  - [Document AI Samples](https://github.com/GoogleCloudPlatform/document-ai-samples)\n- Duet AI\n  - [Cymbal Superstore](https://github.com/GoogleCloudPlatform/cymbal-superstore)\n- Cloud Databases\n  - [Gen AI Databases Retrieval App](https://github.com/GoogleCloudPlatform/genai-databases-retrieval-app)\n- Other\n  - [ai-on-gke](https://github.com/GoogleCloudPlatform/ai-on-gke)\n  - [ai-infra-cluster-provisioning](https://github.com/GoogleCloudPlatform/ai-infra-cluster-provisioning)\n  - [solutions-genai-llm-workshop](https://github.com/GoogleCloudPlatform/solutions-genai-llm-workshop)\n  - [terraform-genai-doc-summarization](https://github.com/GoogleCloudPlatform/terraform-genai-doc-summarization)\n  - [terraform-genai-knowledge-base](https://github.com/GoogleCloudPlatform/terraform-genai-knowledge-base)\n  - [genai-product-catalog](https://github.com/GoogleCloudPlatform/genai-product-catalog)\n  - [solutionbuilder-terraform-genai-doc-summarization](https://github.com/GoogleCloudPlatform/solutionbuilder-terraform-genai-doc-summarization)\n  - [solutions-viai-edge-provisioning-configuration](https://github.com/GoogleCloudPlatform/solutions-viai-edge-provisioning-configuration)\n  - [mis-ai-accelerator](https://github.com/GoogleCloudPlatform/mis-ai-accelerator)\n  - [dataflow-opinion-analysis](https://github.com/GoogleCloudPlatform/dataflow-opinion-analysis)\n  - [genai-beyond-basics](https://github.com/meteatamel/genai-beyond-basics)\n\n## Contributing\n\nContributions welcome! See the [Contributing Guide](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/CONTRIBUTING.md).\n\n## Getting help\n\nPlease use the [issues page](https://github.com/GoogleCloudPlatform/generative-ai/issues) to provide suggestions, feedback or submit a bug report.\n\n## Disclaimer\n\nThis repository itself is not an officially supported Google product. The code in this repository is for demonstrative purposes only.\n","funding_links":[],"categories":["Jupyter Notebook","Large Language Models (LLMs)","A01_文本生成_文本对话","Agent Integration \u0026 Deployment Tools","Repos","Google Cloud Platform (GCP)","AI API","Projects"],"sub_categories":["Contribute to our Repository","大语言对话模型及数据","AI Application Development","Code \u0026 Samples"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Fgenerative-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleCloudPlatform%2Fgenerative-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleCloudPlatform%2Fgenerative-ai/lists"}