back to home

GoogleCloudPlatform / generative-ai

Sample code and notebooks for Generative AI on Google Cloud, with Gemini on Vertex AI

12,711 stars
3,717 forks
71 issues
Jupyter NotebookPythonTypeScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing GoogleCloudPlatform/generative-ai in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/GoogleCloudPlatform/generative-ai)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview

Generative AI on Google Cloud

Gemini 3.1 Pro has been released!

Here are the latest notebooks and demos using the new model:

<!-- markdownlint-disable MD033 -->

This 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 with Vertex AI.

Using this repository

Applied AI Summit: The cloud toolkit for generative AI

<table> <tr> <th></th> <th style="text-align: center;">Description</th> </tr> <tr> <td> <img src="https://storage.googleapis.com/github-repo/img/gemini/Spark__Gradient_Alpha_100px.gif" width="45px" alt="Gemini"> <br> <a href="gemini/"><code>gemini/</code></a> </td> <td> Discover Gemini through starter notebooks, use cases, function calling, sample apps, and more. </td> </tr> <tr> <td> <img src="https://www.gstatic.com/images/branding/gcpiconscolors/service_discovery/v1/24px.svg" width="40px" alt="Search"> <br> <a href="search/"><code>search/</code></a> </td> <td>Use this folder if you're interested in using <a href="https://cloud.google.com/enterprise-search">Vertex AI Search</a>, 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).</td> </tr> <tr> <td> <img src="https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/nature_people/default/40px.svg" alt="RAG Grounding"> <br> <a href="rag-grounding/"><code>rag-grounding/</code></a> </td> <td>Use 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.</td> </tr> <tr> <td> <img src="https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/image/default/40px.svg" alt="Vision"> <br> <a href="vision/"><code>vision/</code></a> </td> <td> 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). These are the features that Imagen on Vertex AI offers: <ul> <li>Image generation</li> <li>Image editing</li> <li>Visual captioning</li> <li>Visual question answering</li> </ul> </td> </tr> <tr> <td> <img src="https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/mic/default/40px.svg" alt="Speech"> <br> <a href="audio/"><code>audio/</code></a> </td> <td> 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). </td> </tr> <tr> <td> <img src="https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/build/default/40px.svg" alt="Setup Env"> <br> <a href="setup-env/"><code>setup-env/</code></a> </td> <td>Instructions on how to set up Google Cloud, the Vertex AI Python SDK, and notebook environments on Google Colab and Vertex AI Workbench.</td> </tr> <tr> <td> <img src="https://fonts.gstatic.com/s/i/short-term/release/googlesymbols/media_link/default/40px.svg" alt="Resources"> <br> <a href="RESOURCES.md"><code>RESOURCES.md</code></a> </td> <td>Learning resources (e.g. blogs, YouTube playlists) about Generative AI on Google Cloud.</td> </tr> </table> <!-- markdownlint-enable MD033 -->

Related Repositories

Contributing

Contributions welcome! See the Contributing Guide.

Getting help

Please use the issues page to provide suggestions, feedback or submit a bug report.

Disclaimer

This repository itself is not an officially supported Google product. The code in this repository is for demonstrative purposes only.