Skill 4.1.2
Implement AI quality metrics, including groundedness, relevance, coherence, and fluency
Key Concepts
AI-assisted evaluators use a judge model deployment to score responses. Groundedness measures whether the claims in a response are supported by the supplied context, which detects fabrication in retrieval-augmented generation. Relevance measures how well the response addresses the query. Coherence measures logical flow and consistency, and fluency measures grammar and readability. Each returns a score, typically from 1 to 5, a reason, and a pass or fail result against a threshold.
NLP evaluators such as F1 score, BLEU, GLEU, ROUGE and METEOR compare the response with a ground truth answer mathematically and need no judge model, which makes them cheap and deterministic but blind to correct answers worded differently. Similarity is an AI-assisted comparison with ground truth. RAG-specific evaluators such as retrieval and response completeness, and agent evaluators such as intent resolution, task adherence and tool call accuracy, extend the set.