This folder contains code samples and hands-on labs demonstrating the use of Generative AI models and tools in Vertex AI.
- Tuning Foundational Models with Vertex AI: A comprehensive Jupyter notebook illustrating the step-by-step procedure for tuning foundational models (PaLM 2) with Google Cloud's Vertex AI. Guides users through the entire setup and integration process – starting from environment setup, foundational model selection, to tuning it with Vertex AI.
- Langchain Observability Code Snippet: A Langchain callback to aid with understanding/observing the exact LLM calls made by a Langchain agent. The callback is provided in a Jupyter notebook, which also includes a demonstration of the code snippet.
- Advanced Prompting Training: A detailed notebook on prompt engineering, demonstrating and explaining chain of thought and ReAct (reasoning + acting) prompting. Chain of thought is a very low-effort way to improve prompt performance, and ReAct is the state-of-the-art for using LLMs to interact with external systems.
- Vertex AI LLM Evaluation Services: We offer a comprehensive set of notebooks that demonstrate how to use Vertex AI LLM Evaluation Services in conjunction with other Vertex AI services. Additionally, we have provided notebooks that delve into the theory behind evaluation metrics.
- Developer Productivity with GenAI: A collection of code samples to show builders and partners how to solve different developer tasks such as code generation, code explanation, unit test generation, comment generation, code debugging, code migration and talk to code and doc in software development life cycles to increase developer productivity with Codey APIs and other GCP services.
- Natural Langauge to SQL queries: The notebook addresses the challenges inherent in converting natural language inputs into SQL queries, while providing demonstrations of effective strategies for generating SQL queries from natural language inputs.
- Vertex AI Extensions Getting Started: A collection of notebooks for getting started using Vertex AI Extensions with the Code Interpreter and Vertex AI Search Extensions.
- Vertex AI Search: A collection of notebooks, with varying levels of complexity, using Vertex AI Search. The notebooks are aimed to serve as building blocks which can be combined together to achieve higher levels goals.