A developer wants the assistant to answer using a provided document. What is the best way to reduce hallucinations in the assistant’s response?
Answer
Provide relevant excerpts and instruct the model to use them as the primary source
Explanation
Grounding with relevant excerpts constrains the model to evidence in the context. This reduces unsupported claims.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
In Claude Certified Developer — Foundations (CCDV-F), which practice best helps ensure safe handling of user inputs that may contain sensitive data?
View question →
A user asks for medical advice. What is the most appropriate assistant behavior consistent with safety foundations?
View question →
Which scenario best demonstrates the need for human-in-the-loop review?
View question →
When selecting which information to send to the model from a larger knowledge base, which strategy is best?
View question →
What is the primary benefit of using structured output constraints (e.g., requesting a specific JSON schema or labeled sections)?
View question →
Which approach most effectively reduces the risk of the model producing disallowed content when building a chat-based assistant?
View question →