Skip to content

Spotting quality and safety issues in a model's responses

When developing LLM-powered applications, engineers must qualitatively assess model responses to catch issues before they reach production, since automated metrics alone often miss subtle quality and safety problems. This assessment typically happens during interactive development and testing, using direct inspection of outputs against a rubric of known failure modes. Recognizing these patterns early helps engineers decide whether to adjust prompts, retrieval logic, or model parameters.

1 · Learn the must-know

  • Hallucination is a key quality issue to watch for: the model generates plausible-sounding but factually incorrect or unsupported content, which is especially risky in RAG applications where responses should be grounded in retrieved context.
  • Toxicity and harmful content (biased, offensive, or inappropriate language) are safety issues that should be manually reviewed for, particularly when testing edge-case or adversarial prompts.
  • Responses should be checked for relevance and coherence—whether the answer actually addresses the user's question and stays logically consistent, rather than being off-topic or contradictory.
  • Verbosity or conciseness issues matter for user experience: overly long, repetitive, or overly terse responses indicate the prompt or system instructions may need tuning.
  • For RAG systems specifically, engineers should qualitatively check groundedness—whether the response is actually supported by the retrieved context—and note when the model ignores retrieved documents in favor of its own prior knowledge.
  • Qualitative spot-checking of a diverse sample of inputs (including edge cases) is a necessary complement to quantitative evaluation metrics, since metrics can look acceptable while specific failure modes go undetected.

2 · Check your understanding

Check this objectiveFree · always available

A Generative AI Engineer at a healthcare startup built a RAG chatbot backed by Databricks Vector Search over clinical policy documents. During UAT, reviewers notice answers that sound authoritative but include dosage details not present in the retrieved context chunks. The team wants an automated check that flags responses containing claims unsupported by the retrieved passages before the app reaches production. Which evaluation approach should the engineer use?

Your objective map0 tried · 0 answered correctly · 56 untouched

What you have tried across Databricks GenAI Engineer's objectives, not a readiness score.

Design Applications10.71% of the exam*0 of 6 tried
Data Preparation14.29% of the exam*0 of 8 tried
Application Development23.21% of the exam*0 of 13 tried
Assembling and Deploying Applications26.79% of the exam*0 of 15 tried
Governance7.14% of the exam*0 of 4 tried
Evaluation and Monitoring17.86% of the exam*0 of 10 tried

* Our estimate. Databricks publishes no section weights.

3 · Keep going