Learning Objectives
By the end of this chapter, you will be able to:
- Describe the limitations of foundation models and gen AI output, including data dependency, knowledge cutoff, bias, fairness, hallucinations, and edge cases.
- Describe techniques to improve gen AI model output, including grounding, retrieval-augmented generation (RAG), prompt engineering, fine-tuning, and human-in-the-loop (HITL).
- Describe prompt engineering workflows and techniques, including zero-shot, few-shot, role prompting, chain-of-thought, and ReAct prompting, plus the role of sampling parameters such as temperature, top-k, and top-p in model guidance and refinement.
- Describe grounding sources and model management, including grounding with first-party enterprise data, third-party data, and world data, and the considerations for ongoing evaluation and management of deployed models.
Executive Summary
- Foundation models fail in predictable categories: stale knowledge, biased training data, fluent fabrication (hallucination), and brittle behaviour on inputs outside the training distribution. Each category has a matched remediation technique, and the Leader-level skill is selecting the cheapest technique that closes the gap.
- A four-rung ladder of remediation moves from cheap to expensive: prompt engineering, then grounding and retrieval-augmented generation, then fine-tuning, then human-in-the-loop oversight. Most business problems are solved on the lower two rungs; reach for fine-tuning only when prompting and grounding cannot reproduce the required tone, format, or domain vocabulary.
- Prompt engineering decomposes into a small set of named patterns (zero-shot, few-shot, role prompting, chain-of-thought, ReAct) and three sampling controls (temperature, top-k, top-p). The patterns shape what the model attempts; the sampling controls shape how the model selects among candidate continuations.
- Grounding sources fall into three tiers (first-party enterprise data, third-party licensed data, world data such as Google Search) with distinct cost, freshness, governance, and citation properties. Ongoing model management adds a fourth concern: detecting drift in model behaviour and input distribution after deployment, and re-evaluating against safety, quality, and cost benchmarks before promoting a new model version.
Assumptions
- Reader profile: a business or platform leader who frames decisions across product, risk, and finance teams rather than writing the production code.
- Terms defined in earlier chapters (Foundation Model, Multimodal Foundation Model, Large Language Model, Prompt Engineering, Prompt Tuning, Fine-Tuning, Vertex AI, Vertex AI Studio, Vertex AI Search, Vertex AI Agent Builder, Vertex AI RAG Engine, Vertex AI Evaluation, Vertex AI Model Monitoring, Gemini, Customer Engagement Suite, NotebookLM, Agentspace, Secure AI Framework, AI Principles) are used without redefinition.
- Region and pricing references follow the official Google Cloud documentation. SKU and quota numbers are quoted in
📊 Limitcallouts only when the official guide publishes the value. - Where the official syllabus phrases an objective with the qualifier "(approximately)", the qualifier is part of the published heading and is retained verbatim in the chapter title.
