Google Generative AI Leader Certification

Notes about Google 's Generative AI Ecosystem

🧠 The Five Layers of Generative AI

RAG, Fine-tuning, and Grounding Comparison

Feature RAG Fine-tuning Grounding
Definition Augments LLMs by retrieving relevant information from external knowledge bases and adding it to the prompt. Further trains a pre-trained model on a new dataset to adapt it to a specific task or domain. Connects an AI model's output to verifiable sources of information.
Process Retrieve relevant information. → Add it to the prompt. → Generate a response. Select a pre-trained model. → Gather data. → Train the model. → Evaluate and refine. Provide access to data sources. → Use RAG or fine-tuning to connect the output.
Data sources External knowledge bases (databases, documents, internet). Task- or domain-specific datasets. External knowledge bases or specific datasets.
Relationship to grounding A specific technique for achieving grounding. Improves a model's ability to be grounded in specific domains. The overarching goal, achieved through techniques like RAG and fine-tuning.

🚀 Why These Layers Matter

🗣️ Conversational Agents vs. ⚙️ Workflow Agents

Feature Conversational Agents Workflow Agents
Primary Goal To understand and respond to user queries in a natural, human-like way. To automate and streamline tasks or complex processes.
Main Function Understanding meaning and intent behind what you say. Executing a series of pre-defined steps to complete a task.
Input Type Typed or spoken messages from a user. A defined task, trigger (e.g., submitting a form, a scheduled event), or an online order.
Tool Usage Calls tools to gather information or perform actions related to a user's request, like searching the web. Executes a sequence of actions based on a defined workflow, like transferring data or sending notifications.
Output Type A relevant and natural-sounding response. A result or output from the completed task, such as a report, a confirmation message, or a data file.
Example A chatbot that answers your questions about a product. An automated system that processes an order and sends a confirmation email.

🤖 The Anatomy of AI Agents

AI agents are a significant leap beyond standalone models. They are designed to observe, act, and achieve goals by combining two key elements: a reasoning loop and tools. 🤖

What Distinguishes AI Agents?

Why They Matter

⚙️ The Challenge for Cymbal Aerospace

💡 The Generative AI Solution

✅ Benefits of Using Vertex AI

📈 The Impact

💻 High-Performance Computing (HPC)

🧠 Specialized Processors

💾 High-Performance Storage

🌐 Networking

📱 On-Device AI: Edge Deployment

🧠 Google's Tools for On-Device AI

🚀 Using Vertex AI for Edge Deployment

🧑‍💻 Roles, Cost, and Decision Making

🧑‍💻 Roles and Responsibilities

It's crucial to have the right people and expertise for your AI project. The AI stack supports a variety of roles:

💰 Cost in Generative AI

💲 Pricing Models and Metrics

📈 Factors Affecting Cost

🎯 Making Decisions for Your Gen AI Project

⚖️ Comparing Different Models and Companies

📚 Key Resources for Comparison

🔧 Planning for Maintenance

🎯 What is Grounding?

🧠 Retrieval-Augmented Generation (RAG)

🆚 Model-Only vs. Model with RAG

✨ Key Takeaways of RAG

🗃️ Data Stores in AI Applications (RAG Knowledge Bases)

☁️ Gemini for Google Cloud: An Overview

🚀 Key Gemini Services

🛠️ Agent Tooling: Providing an Agent with Skills and Knowledge

🧩 The Four Types of Agent Tools

  1. Extensions (APIs): These tools act as a bridge between an agent and external APIs (application programming interfaces). 🔗
    • They provide a standardized way for an agent to use an API, no matter the API's specific design.
    • Example: An agent that books travel could use an extension to interact with a travel company's API. The extension handles the technical complexities, so the agent can focus on finding and booking the flight. ✈️
  2. Functions: These are specialized tools within the agent's toolbox that represent specific actions the agent can perform. 📝
    • An agent's reasoning system will select the correct function based on the task at hand.
    • Functions can encapsulate complex logic, making them reusable and easy to manage.
    • Example: A "calculate_price" function would take flight details and passenger information as input and return the total cost. The agent can then call this function whenever it needs to calculate a price. 💰
  3. Data Stores: These tools give agents access to information. This can include real-time data, historical data, or knowledge bases. 📚
    • Data stores make sure that an agent's responses are accurate, relevant, and up-to-date.
    • Example: An agent could use a data store to access real-time weather conditions, current stock prices, or a database of customer information. 📈
  4. Plugins: Plugins add new skills or integrations to an agent's capabilities. 🔌
    • They can connect an agent to specific services or allow it to interact with particular platforms.
    • Example: A plugin could let an agent interact with a calendar app to schedule appointments. Another might integrate with a payment gateway to process transactions. 💳

🗺️ Agent Tooling Example: Meeting Location Planner

🔄 The Agent's Workflow

  1. Document Processing: The agent first uses the Document AI API to process the uploaded document and identify all the addresses mentioned inside it. 📄
  2. Geocoding: Next, it uses the Google Maps Geocoding API to convert the extracted addresses into latitude and longitude coordinates. This allows the agent to calculate distances and travel times. 📍
  3. Location Analysis: Finally, the agent uses a custom logic (implemented within a Cloud Function) to analyze the geocoded addresses. This helps it determine and suggest the most convenient location for all the attendees. 🧠

🧠 How RAG Works with Tools (Deep Dive)

🔄 The RAG Process with Tools

  1. Retrieval: The LLM uses retrieval tools to find relevant information from outside sources. 🔎 These tools can include:
    • Data stores: Internal databases or other sources of structured and unstructured data. 🗃️
    • Vector databases: Store numerical representations of text (embeddings) and find information that is semantically similar to the user's query.
    • Search engines: Used to find relevant web pages, articles, or other online content. 🌐
    • Knowledge graphs: Structured databases that store information about entities and their relationships. 🔗
  2. Augmentation: The retrieved information is then added to the original prompt that is given to the LLM. 📝 This augmented prompt now has both the user's request and the relevant context.
  3. Generation: The LLM processes the augmented prompt and generates a response. Because it has the external information, the response is more accurate and contextually appropriate. It can also cite its sources, which increases transparency and trustworthiness. ✅
  4. Iteration: In some systems, the LLM can iterate on the retrieval process. If the first search isn't good enough, it can refine its query or use different tools to find better information. It can also ask the user for clarifying questions. 🔄

🔎 What is Vertex AI Search?

📚 Types of Search Solutions

💡 Extra Generative AI Features

✅ Enterprise-Grade Features

🗣️ Building Conversational Agents

🧑‍💼 Agent Assist

📈 Conversational Insights

📞 Contact Center as a Service (CCaaS)

🚀 What is Agentspace?

🆚 Agentspace vs. NotebookLM Enterprise

Feature Agentspace NotebookLM Enterprise
Purpose Your comprehensive enterprise AI assistant that automates tasks and finds information across all business systems. 🤖 A specialized AI tool for deep research, summarizing, and creating content based only on specific documents you upload. 📚
Knowledge Draws from all your connected business systems, breaking down information silos. 🌐 Focuses solely on the sources you provide, like documents or web pages. 🔎
Actions Can automate tasks and orchestrate workflows across your connected systems. ⚙️ Primarily a research and knowledge assistant that helps you understand and create content. ✍️
Integration A central platform that can connect to NotebookLM Enterprise. 🤝 A tool for focused analysis that can be integrated as a data source within Agentspace.