Databricks Certified Generative AI Engineer Associate · Free Practice Question Hard
Question 6
A Generative AI Engineer must prevent hallucinations in an LLM's responses to medical queries. What is the most effective technique?
- A Train the model on diverse datasets.
- B Ground the LLM’s responses using a retrieval-augmented generation (RAG) pipeline connected to verified medical sources.
- C Lower the temperature setting during inference.
- D Use shorter prompts to limit response complexity.
Reveal correct answer
Correct answer: B
Explanation
A RAG pipeline grounds responses in factual data, ensuring outputs are accurate and reducing hallucinations in critical domains like medicine.A. Incorrect: Training diversity does not guarantee factual accuracy in responses.
B. Correct: RAG pipelines anchor LLM outputs in factual, retrieved data, reducing hallucinations.
C. Incorrect: Lowering the temperature reduces randomness but does not eliminate hallucinations.
D. Incorrect: Shorter prompts do not directly impact the model's hallucination tendencies.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
