You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the Python samples folder for Generative AI on Vertex AI! In this folder, you can find the Python samples
used in Google Cloud Generative AI documentation.
If you are looking for colab notebook, then this link.
Getting Started
To try and run these Code samples, we have following recommend using Google Cloud IDE or Google Colab.
Note: A Google Cloud Project is a pre-requisite.
Feature folders
Browse the folders below to find the Generative AI capabilities you're interested in.
Code samples demonstrating how to use context caching with Vertex AI's generative models. This allows for more consistent and relevant responses across multiple interactions by storing previous conversation history.
Code showing how to generate and use embeddings from text or images. Embeddings can be used for tasks like semantic search, clustering, and classification.
Demonstrations of how to use extensions with generative models, enabling them to access and process real-time information, use tools, and interact with external systems.
Code illustrating how to ground generative models with specific knowledge bases or data sources to improve the accuracy and relevance of their responses.