Overcoming Foundation Model Limitations: Grounding, RAG, and HITL
Foundation models have predictable limitations — data dependency, a knowledge cutoff, bias, hallucinations, and weak performance on edge cases — and Google Cloud recommends a specific set of techniques to overcome each one: grounding, retrieval-augmented generation (RAG), prompt engineering, fine-tuning, and human in the loop (HITL). As a leader, you do not need to implement these techniques yourself, but you do need to recognize which technique fits which problem, because that decision drives cost, timelines, and trust in your gen AI solution. This lesson walks through each limitation, explains the recommended practice that addresses it, and maps them together in a single reference table. It then covers what happens after launch: continuous monitoring and evaluation through KPIs, versioning, drift monitoring, performance tracking, automatic model upgrades, security patches, and the Agent Platform Feature Store. Together these cover objective 3.1 of the Generative AI Leader exam guide.
On this page9 sections
- Why foundation models have built-in limitations
- Knowledge cutoff, hallucinations, and edge cases
- Bias and fairness
- Grounding and retrieval-augmented generation (RAG)
- Prompt engineering, fine-tuning, and human in the loop
- Mapping each limitation to the technique that addresses it
- Continuous monitoring and evaluation after launch
- Model upgrades, versioning, and security patches
- What this means for leaders: trust, cost, and sequencing
- Identify the common limitations of foundation models — data dependency, knowledge cutoff, bias, fairness concerns, hallucinations, and edge cases — and tell data dependency apart from the knowledge cutoff
- Explain how grounding and retrieval-augmented generation (RAG) connect model output to verifiable, current data, and when grounding cannot help
- Distinguish when prompt engineering, fine-tuning, and human in the loop (HITL) are the right corrective technique, and which practices reduce, catch, or detect errors
- Map each foundation model limitation to the Google Cloud-recommended practice that addresses it
- Describe continuous monitoring and evaluation practices: value KPIs, performance tracking, drift monitoring, and the Agent Platform Feature Store
- Explain how versioning, automatic model upgrades, and security patches work together on managed models versus self-hosted ones
- Explain the business value of proactive limitation management for trust, compliance, and cost control
Why foundation models have built-in limitations
Foundation models have built-in limitations because everything they know comes from their training data — a property called data dependency. A model can only be as accurate, current, and balanced as the data it learned from. If the training data is incomplete, outdated, or skewed toward certain groups or viewpoints, the model's outputs inherit those weaknesses. No amount of model size eliminates this dependency; it is a structural characteristic of how foundation models are built.
For a business leader, this matters because it reframes gen AI adoption. The question is not "is this model good?" but "is this model's knowledge sufficient for my use case, and where do I need to supplement it?" A general-purpose foundation model knows a great deal about the world but knows nothing about your product catalog, your internal policies, or events after its training data was collected. Recognizing that gap is the first step toward closing it.
Google Cloud's recommended practices — grounding, retrieval-augmented generation (RAG), prompt engineering, fine-tuning, and human in the loop (HITL) — exist precisely because of data dependency. Each one supplements or steers the model's trained knowledge rather than assuming it is complete. The rest of this lesson examines the specific limitations that flow from data dependency, then matches each to its remedy.
Keep data dependency and the knowledge cutoff apart, because they explain different gaps. The knowledge cutoff is about time: public facts that emerged after training data was collected. Data dependency is about coverage: anything that was never in the training data at all, however old. Your organization's decades-old engineering standards are unknown to a public foundation model not because they are recent but because they were private and never part of what it learned. Both gaps are closed the same way, by supplying the missing content at answer time through grounding or RAG, but diagnosing the right cause tells you which source to connect: current public information for a cutoff gap, your own repositories for a coverage gap.
Knowledge cutoff, hallucinations, and edge cases
Three of the most visible limitations are the knowledge cutoff, hallucinations, and edge cases. The knowledge cutoff is the date after which a model has no information: training data was collected up to a point in time, so the model cannot know about newer products, prices, regulations, or events. Ask an ungrounded model about last quarter's results and it either declines or, worse, guesses.
The two limitations often appear together. A model asked about something past its cutoff, or about private data it never saw, does not reliably say "I don't know" — it frequently produces a plausible answer anyway. So a confidently wrong answer about a recent price change is usually both a cutoff (or coverage) problem and a hallucination: the missing knowledge is the cause, the invented answer is the symptom.
Hallucinations are that guessing behavior made general: the model produces fluent, confident output that is factually wrong or entirely invented. This happens because foundation models generate the most statistically likely next tokens, not verified facts. A hallucinated legal citation or product specification looks exactly as polished as a correct one, which is what makes hallucinations a genuine business risk — customers, regulators, and courts do not grade on fluency.
Edge cases are rare or unusual inputs the model saw little of during training: niche industry jargon, uncommon languages, unusual document formats, or scenarios far outside the mainstream. Performance that looks excellent on common requests can degrade sharply at the edges. For a leader, the lesson is to evaluate models on your hardest realistic cases, not just typical ones, before committing to production.
Edge cases do not disappear at launch, so they are also managed in production. Monitoring shows where failures cluster — a particular document type, regional dialect, or request category. Requests in those clusters are routed to people (human in the loop) rather than answered automatically, so customers still get correct outcomes, and the human corrections are collected as labelled examples. Once enough examples exist, they feed few-shot prompts or a fine-tuning run that teaches the model the rare pattern. Fine-tuning alone, without that monitoring and escalation, leaves customers exposed to the edge-case failures in the meantime.
Bias and fairness
Bias means a model's outputs systematically favor or disadvantage certain groups, viewpoints, or outcomes, and fairness is the discipline of detecting and correcting that. Because foundation models learn from vast collections of human-generated text and images, they absorb the historical and societal biases embedded in that data. A hiring-assistant prompt might echo gendered assumptions about roles; a loan-summary tool might describe similar applicants in subtly different tones.
Fairness is both an ethical obligation and a concrete business risk. Biased outputs can violate anti-discrimination rules, trigger regulatory scrutiny, and cause reputational damage that outlasts any cost savings the AI delivered. This is why responsible AI review belongs in the project plan from day one, not as a launch-week checkbox.
Addressing bias is not a single fix but a layered practice: curating and reviewing the data used for grounding and fine-tuning, testing outputs across demographic and scenario variations — most directly with paired test cases that are identical except for a protected attribute such as gender, age, or ethnicity, so any difference in the output can only come from that attribute — applying safety settings, and — critically — keeping a human in the loop (HITL) for consequential decisions. Google Cloud's responsible AI guidance treats fairness as a continuous evaluation activity, which connects directly to the monitoring practices covered later in this lesson.
Grounding and retrieval-augmented generation (RAG)
Grounding is the practice of connecting a model's output to verifiable, authoritative data sources so responses are based on facts rather than the model's trained memory alone. It is Google Cloud's primary answer to both the knowledge cutoff and hallucinations. Two flagship options are Google Search grounding, which anchors responses in current information from the web, and grounding in your own enterprise data through Agent Search, which lets a model answer from your documents, sites, and knowledge bases.
Retrieval-augmented generation (RAG) is the most common technique for implementing grounding with enterprise data. Conceptually it works in three steps: when a user asks a question, the system first retrieves the most relevant passages from your approved content, then augments the prompt by inserting those passages as context, and finally the model generates an answer based on what was retrieved. The model is no longer answering from memory; it is answering from your data, and it can cite where the answer came from.
The business value is substantial. RAG delivers current, company-specific answers without retraining the model — update the source documents and the answers update too. It reduces hallucinations because the model is anchored to retrieved text, and citations make outputs auditable. A concrete example: a support assistant grounded in your product documentation via RAG answers "what is the return window for this product?" from the actual policy document — and when the policy changes, tomorrow's answers change with it, no model work required.
Grounding only fixes fabricated facts when the grounding source actually holds those facts. Grounding with Google Search anchors answers in public web content, so it cannot reach unpublished internal contracts, policies, or price lists; for those, the model must be grounded in your enterprise data. A related misconception: lowering the model's temperature makes output less varied and more repeatable, but it does not make it factual — a low-temperature model can repeat the same invented figure consistently. Sampling settings are covered with the grounding offerings in objective 3.3.
RAG also beats the two tempting shortcuts. Pasting an entire document library into every prompt runs into the context window (how much text one request can hold) and pays for all that text on every request, while retrieval sends only the few relevant passages. And a fine-tuned model that "names its source" is generating that citation as text from its weights; it is not pointing at a retrieved document, so it is not real attribution an auditor can check. When answers must be current and traceable, retrieval is what provides both.
Prompt engineering, fine-tuning, and human in the loop
Beyond grounding, three more techniques round out the toolkit, each fitting a different kind of gap. Prompt engineering is the fastest and cheapest: carefully designing the instructions, context, and examples given to the model to steer its behavior. Clear instructions, a defined role, the desired output format, and a few examples can dramatically improve quality — with no changes to the model and no infrastructure. It is always the first lever to pull, and it is covered in depth in the next lesson.
Fine-tuning goes further: it continues training a foundation model on your own curated examples so the model itself learns your domain's terminology, style, or task patterns. Use it when prompting alone cannot capture what you need — a consistent brand voice across thousands of outputs, specialized clinical or legal vocabulary, or a repetitive structured task. It costs more than prompting because it requires quality training data and an engineering effort, so the recommended sequence is prompt first, ground next, and fine-tune only when a persistent gap remains. If prompting already produces acceptable behaviour, adding fine-tuning is cost without benefit.
Human in the loop (HITL) keeps people in the workflow to review, correct, or approve model outputs before they take effect. It is the essential safeguard wherever errors carry real consequences — medical, financial, legal, or customer-facing decisions. HITL also creates a feedback flywheel: reviewer corrections become evaluation data and future fine-tuning examples. For fairness in particular, human review is the backstop no automated technique fully replaces.
These practices do different jobs, and the difference matters when one wrong output is unacceptable. Grounding, prompt engineering, and fine-tuning reduce how often errors happen, but none drives the rate to zero. Human review before an output takes effect is the practice that catches an individual error before it reaches a customer or a decision. Monitoring dashboards, periodic audits, and sample reviews detect problems after the fact: they reveal patterns and trigger fixes, but they cannot stop the specific error that already went out.
| Job | Practices | What it cannot do |
|---|---|---|
| Reduce errors | Grounding / RAG, prompt engineering, fine-tuning | Guarantee no individual output is wrong |
| Catch errors before they take effect | Human in the loop (review or approval) | Scale to every output at high volume without cost and delay |
| Detect errors after the fact | KPI monitoring, drift monitoring, periodic reviews | Undo an error that has already reached a user |
Real designs combine them: reduce errors everywhere, and reserve human review for the slice of requests where a single mistake is costly — high-value, regulated, or known edge cases — so review effort goes where it pays.
Mapping each limitation to the technique that addresses it
Each limitation has a primary remedy, and matching the two is the core skill of this objective. The table below is the reference map; note that real solutions usually layer several techniques together.
| Limitation | What it looks like | Primary technique | Why it works |
|---|---|---|---|
| Data dependency | Model knows nothing that was never in its training data, such as your private documents | Grounding / RAG with enterprise data | Supplies your own authoritative content at answer time |
| Knowledge cutoff | No awareness of recent events, prices, or policies | Grounding with Google Search; RAG over current documents | Retrieves fresh information instead of relying on trained memory |
| Hallucinations | Confident, fluent, but false statements | Grounding / RAG, plus HITL for high-stakes output | Anchors answers to retrieved facts; humans catch what slips through |
| Bias and fairness | Outputs skewed against groups or viewpoints | HITL review, curated data, safety settings, continuous evaluation | Human judgment and measurement catch patterns automation misses |
| Edge cases | Poor results on rare or specialized inputs | Monitoring to find failure clusters, HITL escalation for them; few-shot prompting or fine-tuning on collected corrections | Keeps rare cases correct now while gathering examples that teach the pattern |
| Generic tone or format | Output ignores your style, structure, or role | Prompt engineering; fine-tuning if persistent | Instructions and examples steer behavior cheaply before retraining |
Two patterns are worth memorizing. First, anything about facts being wrong or stale points to grounding and RAG. Second, anything about consequential judgment or fairness points to human in the loop. When a customer chatbot invents an answer about a current promotion, the remedy is grounding — fine-tuning would neither add current knowledge nor stop invention.
Continuous monitoring and evaluation after launch
Overcoming limitations is not a one-time fix — Google recommends treating gen AI models as living systems that need continuous monitoring and evaluation. Model behavior, your data, and the world all change after launch, so a solution that was accurate in January can quietly degrade by June. The recommended practices form an operational checklist: KPIs and performance tracking, drift monitoring, versioning, model upgrades and security patches (next section), and the Agent Platform Feature Store.
Key performance indicators (KPIs) define what "working" means for your use case, and performance tracking measures them continuously so degradation is caught by dashboards, not by customer complaints. A KPI that shows a solution still delivers value measures a business outcome: first-contact resolution rate, the accuracy of extracted invoice fields, time saved per claim, or customer satisfaction. Two kinds of number look like KPIs but are not value measures. Usage measures — tokens consumed, requests served, active users — show the system is busy, not that it helps. Generic capability scores — a model's results on public benchmarks — describe the model in general, not how it performs on your tasks and data.
Drift monitoring watches for gradual divergence between the conditions the solution was built and evaluated for and what it sees in production, as user questions, products, and language shift over time. Drift is easy to confuse with other post-launch problems:
| Problem | What it looks like | Is it drift? |
|---|---|---|
| Drift | Quality slides over weeks as inputs change, with no deployment change | Yes — caught by tracking input patterns and KPIs over time |
| Availability incident | The service is down or timing out | No — an operations and reliability issue |
| Single hallucination | One answer is wrong | No — an individual error, addressed by grounding and review |
| Bad release | Quality drops right after a model, prompt, or data change | No — a versioning issue, fixed by rollback |
Because drift happens while the deployment stays the same, version records show nothing changed; only monitoring of inputs and outcomes reveals it. Detected drift triggers a refresh of grounding data, prompts, or tuning.
Finally, the Agent Platform Feature Store gives your AI systems a centrally managed, consistent source of feature data — governed input values such as a supplier's on-time delivery rate or a device's average daily usage. The problem it prevents is training–serving inconsistency: when the testing or training environment and the production (serving) environment each compute the same features in their own pipelines, the values drift apart, and a model or agent behaves differently in production than it did in testing for the same customer. Serving every environment, and every model and agent, from one feature store removes that mismatch at its source.
Model upgrades, versioning, and security patches
Managed models improve over time, and the recommended way to take those improvements is deliberate: pin production to a stable model version, evaluate each newer version against your own KPIs, and promote it only when it passes. Versioning is what makes this possible — recording which model version, prompt version, and dataset version are in production, so every change is deliberate, testable, and reversible; if a new version underperforms, you roll back.
Managed Google models are offered in two broad ways. A stable version is a fixed model whose behavior does not change underneath you. An auto-updating alias points to whichever version Google currently designates for it (for the classic aliases, the latest stable version), so automatic model upgrades arrive without any rebuild. Auto-updating is convenient for experimentation, but in production it means a behavior change — a shift in tone, added caveats, or a changed output structure — can reach users before anyone has reviewed it, and KPI monitoring only reports the problem afterwards. Pinning plus an evaluation step (run the new version against a test set that reflects your KPIs, including the output properties downstream systems rely on, then switch) keeps the benefit without the surprise. Pinning is not permanent either: stable versions have published retirement dates, so a team that pins and never evaluates eventually faces an unplanned, untested switch.
Security patches and updates are a separate responsibility question. On a Google-managed model, Google patches and maintains the model-serving platform, so your team does not run that work. Self-hosting an open model on your own infrastructure gives full control over when every upgrade and patch happens, but moves all of that work — patching, serving, scaling — onto your team, which is a poor fit when operations staff are limited.
| Approach | Gets improvements | Review before change | Who patches |
|---|---|---|---|
| Auto-updating alias in production | Yes, automatically | No — changes land first | |
| Pinned stable version + evaluate, then promote | Yes, when promoted | Yes | |
| Self-hosted open model | When the team upgrades | Yes | Your team |
What this means for leaders: trust, cost, and sequencing
For leaders, the practical takeaway is a sequencing strategy: start with the cheapest technique that could work and escalate only when needed. Prompt engineering costs almost nothing and often resolves tone, format, and instruction-following problems. Grounding and RAG come next, solving factual accuracy and freshness without touching the model. Fine-tuning is reserved for persistent, domain-specific gaps that justify its data and engineering investment. HITL is not a fallback but a standing control wherever stakes are high.
This sequencing directly controls cost and time-to-value. A team that jumps straight to fine-tuning for a problem RAG would have solved spends months and a data-collection effort on something a retrieval pipeline handles in weeks — and still ends up with stale answers, because fine-tuning bakes knowledge in at training time rather than fetching it live. Matching technique to limitation is a budgeting decision as much as a technical one.
Finally, treat monitoring as the trust budget for the whole program. Executive sponsors, regulators, and end users extend trust to gen AI systems that can show their KPIs, explain which version produced which output, and demonstrate that drift and bias are being watched. A gen AI solution without continuous evaluation is not "done" — it is unmonitored, and unmonitored systems eventually surprise you in public.
Tip. Objective 3.1 tests whether you can match each foundation model limitation to its Google Cloud-recommended remedy and weigh the trade-offs between remedies. Scenarios cover a chatbot inventing or quoting outdated facts (grounding and RAG, and whether the grounding source actually holds the facts), wrong tone or format (prompt engineering), persistent domain gaps (fine-tuning), rare inputs and high-stakes or fairness-sensitive decisions (monitoring plus human in the loop), and bias detection with paired tests. Monitoring questions test value KPIs versus usage measures, drift versus outages and bad releases, pinning and evaluating model versions before promotion, who applies security patches on managed versus self-hosted models, and the Agent Platform Feature Store as the fix for inconsistent features across environments.
- Data dependency is about coverage (what was never in training data, such as private documents); the knowledge cutoff is about time (what happened after collection). Both are closed by grounding or RAG.
- Models often invent rather than decline when knowledge is missing, so cutoff gaps usually surface as hallucinations.
- Grounding fixes fabricated facts only when its source holds the facts; lower temperature reduces variability, not fabrication.
- RAG keeps answers current and traceable; stuffing a whole library into every prompt hits context and cost limits, and fine-tuned "citations" are not real attribution.
- Match limitation to remedy: wrong or stale facts → grounding/RAG (retrieve, augment, generate); tone or format → prompt engineering; a persistent domain gap → fine-tuning; high-stakes or fairness-sensitive decisions → human in the loop as a standing safeguard.
- The cost-effective sequence is prompt engineering first, grounding and RAG next, fine-tuning last — and only when a real gap remains.
- Grounding, prompting and fine-tuning reduce errors; human review catches an individual error before it takes effect; monitoring detects problems after the fact.
- Value KPIs measure business outcomes, not usage or public benchmark scores; drift is gradual change with an unchanged deployment, not an outage or a single wrong answer.
- Pin a stable model version, evaluate each newer version against your KPIs, then promote; stable versions retire, and Google patches managed models while self-hosting moves patching to your team.
- The Agent Platform Feature Store serves the same governed feature values to training, testing and production, preventing training–serving inconsistency.
Frequently asked questions
What is the difference between grounding and retrieval-augmented generation (RAG)?
Grounding is the goal: connecting model output to verifiable, authoritative data so answers are based on facts rather than trained memory. RAG is the most common technique for achieving it — the system retrieves relevant passages from approved sources, adds them to the prompt as context, and the model generates its answer from that retrieved material. In short, RAG is one way to implement grounding; Google Search grounding is another, anchoring answers in current web information.
Why do foundation models hallucinate?
Foundation models generate the most statistically likely sequence of tokens given the prompt — they predict plausible text rather than look up verified facts. When the model lacks the actual answer, it can still produce a fluent, confident-sounding response that is wrong or invented. Grounding and RAG reduce hallucinations by anchoring the model to retrieved source material, and human in the loop review catches errors in high-stakes outputs.
When should a business choose fine-tuning instead of RAG?
Choose RAG when the problem is factual knowledge — current, company-specific answers that change over time — because updating source documents updates the answers with no model work. Choose fine-tuning when the problem is behavior: a consistent brand voice, specialized domain vocabulary, or a repetitive task pattern that prompting cannot reliably capture. Fine-tuning bakes patterns into the model at training time, so it does not keep knowledge current; many production systems use both together. Fine-tuning also cannot provide real attribution: a source named by a fine-tuned model is generated text, not a retrieved document.
What is human in the loop (HITL) and when is it required?
Human in the loop keeps people in the workflow to review, correct, or approve model outputs before they take effect. It is the recommended safeguard wherever errors have serious consequences — medical, financial, legal, or fairness-sensitive decisions — because human judgment catches problems no automated check fully covers. HITL also generates feedback data that improves evaluation and future fine-tuning.
What is drift monitoring in generative AI?
Drift monitoring detects the gradual divergence between what a model was built and evaluated for and what it actually encounters in production. As user questions, products, terminology, and the world change, output quality can quietly degrade even though nothing broke. Monitoring KPIs and input patterns over time surfaces this drift so teams can refresh grounding data, prompts, or tuning before users notice.
What does the Agent Platform Feature Store do?
The Agent Platform Feature Store centrally manages and serves feature data — the governed input values AI systems consume, such as a supplier's on-time delivery rate — so every model, agent and environment uses the same values. It prevents training–serving inconsistency, where testing and production compute the same features in separate pipelines and the system behaves differently in production than it did in testing. Reliable outputs depend on reliably managed inputs, and a central feature store is how that consistency is maintained at scale.
How should a team handle automatic model upgrades in production?
Pin production to a stable model version rather than an auto-updating alias, run each newer version against a test set that reflects your own KPIs (including the output properties downstream systems rely on), and switch only when it passes. This keeps the improvements of newer models while stopping unreviewed behavior changes from reaching users. Pinning is not permanent, because stable versions have retirement dates, so the evaluation step has to be a routine part of operations.
How is drift different from other problems after a gen AI launch?
Drift is a gradual decline in quality as production inputs move away from what the solution was built and evaluated for, while the deployment itself stays unchanged. An outage is an availability problem, a single wrong answer is an individual error, and a sudden drop right after a release is a versioning problem fixed by rollback. Because nothing in the deployment changed, version records do not reveal drift; tracking input patterns and KPIs over time does.
Source
This lesson covers the "Techniques to improve gen AI model output" domain of the official GenAI Leader exam guide. Vendors revise their guides — check the source for the current version.
- Google Cloud Generative AI Leader exam guide — Google Cloud
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.