https://github.com/GoogleCloudPlatform/generative-ai
Sample code and notebooks for Generative AI on Google Cloud, with Gemini on Vertex AI
https://github.com/GoogleCloudPlatform/generative-ai
gemini gemini-api generative-ai google google-cloud google-gemini langchain llm palm-api vertex-ai vertex-ai-gemini-api vertexai
Last synced: 29 days ago
JSON representation
Sample code and notebooks for Generative AI on Google Cloud, with Gemini on Vertex AI
- Host: GitHub
- URL: https://github.com/GoogleCloudPlatform/generative-ai
- Owner: GoogleCloudPlatform
- License: apache-2.0
- Created: 2023-05-05T12:31:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-28T23:55:28.000Z (about 2 months ago)
- Last Synced: 2025-03-01T09:23:49.718Z (about 2 months ago)
- Topics: gemini, gemini-api, generative-ai, google, google-cloud, google-gemini, langchain, llm, palm-api, vertex-ai, vertex-ai-gemini-api, vertexai
- Language: Jupyter Notebook
- Homepage: https://cloud.google.com/vertex-ai/docs/generative-ai/learn/overview
- Size: 332 MB
- Stars: 9,602
- Watchers: 192
- Forks: 2,674
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-generative-ai - GoogleCloudPlatform/generative-ai
- StarryDivineSky - GoogleCloudPlatform/generative-ai
- awesome-repositories - GoogleCloudPlatform/generative-ai - Sample code and notebooks for Generative AI on Google Cloud, with Gemini on Vertex AI (Jupyter Notebook)
- AiTreasureBox - GoogleCloudPlatform/generative-ai - 04-07_10046_10](https://img.shields.io/github/stars/GoogleCloudPlatform/generative-ai.svg)|Sample code and notebooks for Generative AI on Google Cloud| (Repos)
- awesome-generative-ai-data-scientist - GitHub
README
# Generative AI
> 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!
>
> Here are the latest notebooks and demos using the new models:
>
> - [Intro to Gemini 2.0 Pro](gemini/getting-started/intro_gemini_2_0_pro.ipynb)
> - [Intro to Gemini 2.0 Flash-Lite](gemini/getting-started/intro_gemini_2_0_flash_lite.ipynb)
> - [Intro to Gemini 2.0 Flash](gemini/getting-started/intro_gemini_2_0_flash.ipynb)
> - [Intro to Multimodal Live API with Gen AI SDK](gemini/multimodal-live-api/intro_multimodal_live_api_genai_sdk.ipynb)
> - [Intro to Gemini 2.0 Thinking](gemini/getting-started/intro_gemini_2_0_flash_thinking_mode.ipynb)
> - [Intro to Code Execution](gemini/code-execution/intro_code_execution.ipynb)
> - [Multimodal Live API Demo App](gemini/multimodal-live-api/websocket-demo-app/)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](https://cloud.google.com/ai/generative-ai), powered by [Vertex AI](https://cloud.google.com/vertex-ai).
For more Vertex AI samples, please visit the [Vertex AI samples GitHub repository](https://github.com/GoogleCloudPlatform/vertex-ai-samples/).
## Using this repository
[](https://www.youtube.com/watch?v=xT7WW2SKLfE)
Description
![]()
gemini/
Discover Gemini through starter notebooks, use cases, function calling, sample apps, and more.
![]()
search/
Use this folder if you're interested in using Vertex AI Search, 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).
![]()
rag-grounding/
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.
![]()
conversation/
Use this folder if you're interested in using Vertex AI Conversation, 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).
![]()
language/
Use this folder if you're interested in building your own solutions from scratch using Google's language foundation models (Vertex AI PaLM API).
![]()
vision/
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:
- Image generation
- Image editing
- Visual captioning
- Visual question answering
audio/
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).
setup-env/
Instructions on how to set up Google Cloud, the Vertex AI Python SDK, and notebook environments on Google Colab and Vertex AI Workbench.
RESOURCES.md
Learning resources (e.g. blogs, YouTube playlists) about Generative AI on Google Cloud.
## Related Repositories
- [🚀 Agent Starter Pack](https://github.com/GoogleCloudPlatform/agent-starter-pack)
- A collection of production-ready Generative AI Agent templates built for Google Cloud.
- It accelerates development by providing a holistic, production-ready solution, addressing common challenges (Deployment & Operations, Evaluation, Customization, Observability) in building and deploying Gen AI agents.
- [Gemini Cookbook](https://github.com/google-gemini/cookbook/)
- [Google Cloud Applied AI Engineering](https://github.com/GoogleCloudPlatform/applied-ai-engineering-samples)
- [Generative AI for Marketing using Google Cloud](https://github.com/GoogleCloudPlatform/genai-for-marketing)
- [Generative AI for Developer Productivity](https://github.com/GoogleCloudPlatform/genai-for-developers)
- Vertex AI Core
- [Vertex AI Samples](https://github.com/GoogleCloudPlatform/vertex-ai-samples)
- [MLOps with Vertex AI](https://github.com/GoogleCloudPlatform/mlops-with-vertex-ai)
- [Developing NLP solutions with T5X and Vertex AI](https://github.com/GoogleCloudPlatform/t5x-on-vertex-ai)
- [AlphaFold batch inference with Vertex AI Pipelines](https://github.com/GoogleCloudPlatform/vertex-ai-alphafold-inference-pipeline)
- [Serving Spark ML models using Vertex AI](https://github.com/GoogleCloudPlatform/vertex-ai-spark-ml-serving)
- [Sensitive Data Protection (Cloud DLP) for Vertex AI Generative Models (PaLM2)](https://github.com/GoogleCloudPlatform/Sensitive-Data-Protection-for-Vertex-AI-PaLM2)
- Conversational AI
- [Contact Center AI Samples](https://github.com/GoogleCloudPlatform/contact-center-ai-samples)
- [Reimagining Customer Experience 360](https://github.com/GoogleCloudPlatform/dialogflow-ccai-omnichannel)
- Document AI
- [Document AI Samples](https://github.com/GoogleCloudPlatform/document-ai-samples)
- Duet AI
- [Cymbal Superstore](https://github.com/GoogleCloudPlatform/cymbal-superstore)
- Cloud Databases
- [Gen AI Databases Retrieval App](https://github.com/GoogleCloudPlatform/genai-databases-retrieval-app)
- Other
- [ai-on-gke](https://github.com/GoogleCloudPlatform/ai-on-gke)
- [ai-infra-cluster-provisioning](https://github.com/GoogleCloudPlatform/ai-infra-cluster-provisioning)
- [solutions-genai-llm-workshop](https://github.com/GoogleCloudPlatform/solutions-genai-llm-workshop)
- [terraform-genai-doc-summarization](https://github.com/GoogleCloudPlatform/terraform-genai-doc-summarization)
- [terraform-genai-knowledge-base](https://github.com/GoogleCloudPlatform/terraform-genai-knowledge-base)
- [genai-product-catalog](https://github.com/GoogleCloudPlatform/genai-product-catalog)
- [solutionbuilder-terraform-genai-doc-summarization](https://github.com/GoogleCloudPlatform/solutionbuilder-terraform-genai-doc-summarization)
- [solutions-viai-edge-provisioning-configuration](https://github.com/GoogleCloudPlatform/solutions-viai-edge-provisioning-configuration)
- [mis-ai-accelerator](https://github.com/GoogleCloudPlatform/mis-ai-accelerator)
- [dataflow-opinion-analysis](https://github.com/GoogleCloudPlatform/dataflow-opinion-analysis)
- [genai-beyond-basics](https://github.com/meteatamel/genai-beyond-basics)
## Contributing
Contributions welcome! See the [Contributing Guide](https://github.com/GoogleCloudPlatform/generative-ai/blob/main/CONTRIBUTING.md).
## Getting help
Please use the [issues page](https://github.com/GoogleCloudPlatform/generative-ai/issues) 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.