Generative AI Leader Practice Question: Techniques to Improve Generative AI Model Output
A company is using a generative AI model to generate product descriptions. They notice the outputs often include factual inaccuracies about product specifications. Which technique would best address this issue without modifying the model's architecture?
⚠ Common exam trap
Google Cloud often tests the misconception that adjusting generation parameters (like temperature or token limits) or providing examples can fix factual accuracy, when in fact only retrieval-augmented methods or fine-tuning on verified data can correct hallucinations without changing the model architecture.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Implement a Retrieval-Augmented Generation (RAG) pipeline that retrieves product specs from a database
Retrieval-Augmented Generation (RAG) is the correct technique because it grounds the model's output in factual, up-to-date product specifications retrieved from an external database. This directly addresses factual inaccuracies without modifying the model's architecture, as the model generates text based on retrieved context rather than relying solely on its parametric knowledge.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement a Retrieval-Augmented Generation (RAG) pipeline that retrieves product specs from a database
Why this is correct
RAG grounds generation in retrieved product specifications from the database, so outputs cite accurate facts rather than relying on parametric memory. This corrects inaccuracies without retraining or altering the model's architecture, satisfying the stem's constraint of no architectural modification.
- ✗
Decrease the temperature parameter to 0.1
Why it's wrong here
Lowering temperature reduces randomness in token selection, making phrasing more deterministic, but a confident hallucinated specification remains equally likely because the model still lacks the factual source. It is tempting because temperature genuinely controls creativity. Retrieval-augmented generation supplies authoritative product data the model must ground its output in.
- ✗
Increase the max output tokens to 1024
Why it's wrong here
Raising max output tokens only extends how much text the model may generate; it does not affect whether stated specifications are true, and longer outputs can add further fabrications. It is tempting because token limits do govern truncated or incomplete responses. Retrieval-augmented generation addresses accuracy by supplying verified source content.
- ✗
Use few-shot prompting with 5 examples of correct descriptions
Why it's wrong here
Few-shot examples demonstrate desired output style and format, but they do not supply verified product specifications, so the model can still fabricate details. It is tempting because few-shot prompting genuinely improves consistency and tone. Grounding outputs in a retrieval source containing authoritative specification data is what constrains factual claims.
Go deeper
Related to this question
About these practice questions
Courseiva writes every Generative AI Leader question from scratch — 1,008 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This Generative AI Leader practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Generative AI Leader exam.