Built-in evals

Every built-in eval template, with its required inputs and scoring method

Built-in evals are pre-configured evaluation templates you can attach to dataset runs, prompt runs, simulations, and live traces in Observe. Pick the evals you need, add them to your run, and the platform scores results automatically; Running Evaluations shows every surface you can attach them to.

Each row lists the inputs a template needs, where it fits, and how it scores, whether by LLM-as-Judge, an LLM-based ranker, a deterministic rule, or a statistical metric. For what the resulting scores mean, see Output types & scoring.

Required inputs are the fields you map when you attach an eval: input is the user query, output is your AI’s response, context is the retrieved or reference material, and expected_response is the known-good answer. Eval templates covers how mapping works.

RAG & retrieval

Whether what you retrieved was right, and whether the response stayed inside it

EvalDescriptionRequired InputsUse CasesEvaluation Method
Context AdherenceMeasures how well responses stay within the provided context.output, contextText, Audio, Image, Chat, RAG & Retrieval, HallucinationLLM as Judge
Context RelevanceEvaluates the relevancy of the context to the user query.input, contextText, Audio, Image, Chat, RAG & RetrievalLLM as Judge
CompletenessEvaluates if the response completely answers the query.input, outputText, Audio, Chat, RAG & RetrievalLLM as Judge
Chunk AttributionTracks if the context chunk is used in generating the response.output, contextRAG & RetrievalLLM as Judge
Chunk UtilizationMeasures how effectively context chunks are used in responses.output, contextRAG & RetrievalLLM as Judge
GroundednessEnsures response strictly adheres to the provided context without external information.output, contextText, Audio, Chat, RAG & Retrieval, HallucinationLLM as Judge
Detect HallucinationIdentifies fabricated facts not present in the input or reference.input, outputText, Audio, Image, Chat, RAG & Retrieval, HallucinationLLM as Judge
Eval RankingProvides a ranking score for each context based on specified criteria.input, contextRAG & Retrieval, CustomLLM as Ranker
Recall@KEvaluates recall at K for retrieval-based systems.output, contextRAG & RetrievalStatistical Metric
Precision@KEvaluates precision at K for retrieval-based systems.output, contextRAG & RetrievalStatistical Metric
NDCG@KCalculates normalized discounted cumulative gain at K.output, contextRAG & RetrievalStatistical Metric
MRRCalculates mean reciprocal rank for retrieval results.output, contextRAG & RetrievalStatistical Metric
Hit RateMeasures the fraction of queries where the correct item appears in top-K results.output, contextRAG & RetrievalStatistical Metric
Non-LLM Context PrecisionMeasures the fraction of retrieved contexts that exact-match a reference context.output, expectedRAG & RetrievalStatistical Metric
Non-LLM Context RecallMeasures the fraction of reference contexts that were successfully retrieved.output, expectedRAG & RetrievalStatistical Metric
Mean Average PrecisionAverages precision at each relevant rank position, rewarding relevant items retrieved earlier.reference, hypothesisRAG & RetrievalStatistical Metric

Safety & compliance

Anything that must never reach your user

EvalDescriptionRequired InputsUse CasesEvaluation Method
PII DetectionDetects personally identifiable information (PII) in text.outputText, Audio, Image, Chat, SafetyLLM as Judge
ToxicityEvaluates content for toxic or harmful language.outputText, Audio, Image, Chat, SafetyLLM as Judge
SexistDetects sexist content and gender bias.outputText, Audio, Image, Chat, SafetyLLM as Judge
Prompt InjectionEvaluates text for potential prompt injection attempts.input, outputText, Audio, Image, Chat, SafetyLLM as Judge
Data Privacy ComplianceChecks output for GDPR, HIPAA, and other privacy regulation compliance.outputText, Audio, Image, Chat, SafetyLLM as Judge
Cultural SensitivityAnalyzes output for cultural appropriateness and inclusive language.outputText, Audio, Image, Chat, SafetyLLM as Judge
Bias DetectionIdentifies gender, racial, cultural, or ideological bias in output.outputText, Audio, Image, Chat, SafetyLLM as Judge
No Racial BiasEnsures output does not contain or imply racial bias.outputText, Audio, Image, Chat, SafetyLLM as Judge
No Gender BiasChecks the response does not reinforce gender stereotypes.outputText, Audio, Image, Chat, SafetyLLM as Judge
No Age BiasEvaluates if content is free from age-based stereotypes.outputText, Audio, Image, Chat, SafetyLLM as Judge
Answer RefusalChecks if the model correctly refuses harmful or restricted queries.input, outputText, Audio, Chat, SafetyLLM as Judge
No Harmful Therapeutic GuidanceEnsures the model does not provide potentially harmful psychological advice.outputText, Audio, Chat, SafetyLLM as Judge
Clinically Inappropriate ToneEvaluates whether tone is unsuitable for clinical or mental health contexts.outputText, Audio, Chat, SafetyLLM as Judge
Is Harmful AdviceDetects advice that could be physically, emotionally, legally, or financially harmful.outputText, Audio, Chat, SafetyLLM as Judge
Is RefusalDetects whether a model output is a refusal, using pattern matching against common refusal phrasing.textText, SafetyDeterministic / Rule-based

Conversation & agents

Multi-turn behavior: coherence, goal completion, and how a customer-facing agent handles the hard moments

EvalDescriptionRequired InputsUse CasesEvaluation Method
Conversation CoherenceEvaluates if a conversation flows logically and maintains context throughout.conversationConversation, Chat, AudioLLM as Judge
Conversation ResolutionChecks if the conversation reaches a satisfactory conclusion.conversationConversation, Chat, AudioLLM as Judge
Evaluate Function CallingAssesses accuracy and effectiveness of LLM function calls.outputTextLLM as Judge
Task CompletionMeasures whether the model fulfilled the user’s request accurately.input, outputText, Audio, ChatLLM as Judge
Customer Agent: Loop DetectionDetects if a customer agent is stuck in a loop during a conversation.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Context RetentionEvaluates if the agent correctly retains context across conversation turns.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Query HandlingAssesses how effectively the agent handles customer queries.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Termination HandlingEvaluates how the agent handles conversation termination.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Interruption HandlingChecks how the agent responds to interruptions during a conversation.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Conversation QualityEvaluates the overall quality of a customer agent conversation.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Objection HandlingAssesses how the agent handles objections raised by the customer.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Language HandlingEvaluates language consistency and appropriateness in agent responses.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Human EscalationChecks if the agent correctly identifies when to escalate to a human.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Clarification SeekingEvaluates if the agent appropriately seeks clarification when needed.conversationConversation, Chat, AudioLLM as Judge
Customer Agent: Prompt ConformanceChecks if agent responses conform to the defined prompt and guidelines.system_prompt, conversationConversation, Chat, AudioLLM as Judge
Conversation HallucinationChecks whether an agent fabricated facts, user attributions, or self-contradictions across a conversation.conversation, contextConversation, Chat, HallucinationLLM as Judge
Customer Agent: Task CompletionChecks whether an agent fully resolved the customer’s request, including valid policy-based refusals.agent_prompt, conversationConversation, ChatLLM as Judge
Tool Call AccuracyCompares an agent’s actual tool calls against expected calls, scoring matches on function name and arguments.output, expectedAgents, Tool UseCode
Trajectory MatchCompares an agent’s actual action sequence against an expected trajectory using configurable matching modes.output, expectedAgents, Tool UseCode
Step CountValidates the number of steps in an agent trajectory against an exact count or a min/max range.outputAgentsCode

Output quality & format

Whether a single response is well-made: tone, brevity, structure, and format checks

EvalDescriptionRequired InputsUse CasesEvaluation Method
ToneAnalyzes the tone and sentiment of content.outputText, Audio, Chat, SafetyLLM as Judge
Instruction AdherenceAssesses how closely the output follows prompt instructions.input, outputText, Audio, Chat, HallucinationLLM as Judge
Summary QualityEvaluates if a summary captures main points and achieves appropriate length.input, outputText, Audio, Image, RAG & RetrievalLLM as Judge
Translation AccuracyEvaluates translation quality, accuracy, and cultural appropriateness.output, expected_responseText, Audio, RAG & RetrievalLLM as Judge
No LLM ReferenceEnsures output does not reference being an LLM or OpenAI model.outputText, Audio, Chat, SafetyLLM as Judge
No ApologiesChecks if the model unnecessarily apologizes.outputText, Audio, ChatLLM as Judge
Is PoliteEnsures output maintains a respectful and non-aggressive tone.outputText, Audio, ChatLLM as Judge
Is ConciseMeasures whether the answer is brief and avoids redundancy.outputText, Audio, ChatLLM as Judge
Is HelpfulEvaluates whether the response answers the user’s question effectively.input, outputText, Audio, ChatLLM as Judge
Is Good SummaryEvaluates if a summary is clear, well-structured, and captures key points.input, outputText, Audio, RAG & RetrievalLLM as Judge
Is Informal ToneDetects whether the tone is casual (slang, contractions, emoji).outputText, Audio, ChatLLM as Judge
Contains CodeChecks whether the output is valid code or contains expected code snippets.outputTextLLM as Judge
Text to SQLEvaluates the quality and correctness of text-to-SQL generation.input, outputTextLLM as Judge
Is JSONValidates if content is proper JSON format.outputTextDeterministic / Rule-based
One LineChecks if the text is a single line.outputTextDeterministic / Rule-based
Contains Valid LinkChecks for presence of valid URLs in the output.outputTextDeterministic / Rule-based
Is EmailValidates email address format.outputTextDeterministic / Rule-based
No Invalid LinksChecks if the text contains no invalid URLs.outputTextDeterministic / Rule-based
Is HTMLChecks that text contains well-formed HTML with all tags properly closed and matched.textText, FormatCode
Is SQLChecks that text looks like syntactically valid SQL.textText, FormatCode
Is URLChecks that text is a properly formatted URL with a valid scheme and host.textText, FormatCode
Is XMLChecks that text parses as well-formed XML, rejecting unsafe DOCTYPE/ENTITY declarations.textText, FormatCode
JSON DiffCompares structural and value-level similarity between two JSON documents.output, expectedText, FormatCode
Syntax ValidationChecks code syntax without executing it, for Python, JSON, and JavaScript.textText, FormatCode
Latency CheckChecks whether a latency value is within an acceptable bound.textText, FormatCode
Regex PII DetectionChecks text against regex patterns for SSN, credit card, phone, email, and IP address.textText, SafetyCode
Word Count In RangeChecks whether a text’s word count falls within a configured min/max range.textText, FormatCode

Reference & similarity

Compare a response against a known-good answer, from fuzzy matching to statistical scores

EvalDescriptionRequired InputsUse CasesEvaluation Method
Fuzzy MatchCompares output with expected answer using approximate matching.output, expected_responseText, Audio, RAG & RetrievalLLM as Judge
Ground Truth MatchChecks if the output matches a provided ground truth answer.generated_value, expected_valueText, AudioLLM as Judge
BLEU ScoreComputes BLEU score between expected answer and model output.output, expected_responseTextStatistical Metric
ROUGE ScoreCalculates ROUGE score between generated and reference text.output, expected_responseTextStatistical Metric
Levenshtein SimilarityCalculates edit distance between generated and reference text.output, expected_responseTextStatistical Metric
Numeric SimilarityCalculates numerical difference between generated and reference value.output, expected_responseTextStatistical Metric
Embedding SimilarityCalculates semantic similarity between generated and reference text.output, expected_responseTextStatistical Metric
Semantic List ContainsChecks if text contains phrases semantically similar to reference phrases.output, expected_responseTextStatistical Metric
Jaccard SimilarityMeasures token-set overlap between output and expected text.output, expectedTextStatistical Metric
Jaro-Winkler SimilarityMeasures character-matching string similarity boosted by a common-prefix bonus.output, expectedTextStatistical Metric
Hamming SimilarityMeasures matching character positions between two equal-length strings.output, expectedTextStatistical Metric

Audio & voice

Score speech directly: transcription accuracy, audio quality, and synthesized speech

EvalDescriptionRequired InputsUse CasesEvaluation Method
Audio Transcription (ASR/STT)Checks accuracy of a speech-to-text transcription against the audio source.audio, transcriptionAudioLLM as Judge
Audio QualityEvaluates the quality of audio (clarity, noise, distortion).audioAudioLLM as Judge
TTS AccuracyEvaluates the accuracy and naturalness of text-to-speech output.text, generated_audioAudio, ConversationLLM as Judge
Dead Air DetectionDetects excessive silence in conversation audio using RMS energy analysis against configurable thresholds.input_audioAudioCode
Character Error RateMeasures character-level edit distance between reference and hypothesis transcripts.reference, hypothesisAudioStatistical Metric
Match Error RateMeasures edit operations relative to hits plus edits at the word level.reference, hypothesisAudioStatistical Metric
Word Error RateMeasures word-level edit distance between reference and hypothesis transcripts.reference, hypothesisAudioStatistical Metric
Word Info LostMeasures word information lost, derived from hits relative to reference and hypothesis length.reference, hypothesisAudioStatistical Metric
Word Info PreservedMeasures word information preserved, hits relative to reference and hypothesis length.reference, hypothesisAudioStatistical Metric

Image & document

Generated images and document extraction

EvalDescriptionRequired InputsUse CasesEvaluation Method
Caption HallucinationDetects hallucinated or fabricated details in image captions.instruction, outputImage, RAG & Retrieval, HallucinationLLM as Judge
Synthetic Image EvaluatorEvaluates synthetic or AI-generated images against criteria.image, instructionImageLLM as Judge
OCR EvaluationEvaluates the accuracy of optical character recognition (OCR) output.input_pdf, json_contentText, PDF / DocumentLLM as Judge
FID ScoreComputes the Fréchet Inception Distance between two sets of images; lower scores indicate more similar image distributions.real_images, fake_imagesImageStatistical Metric
CLIP ScoreMeasures how well images match their text descriptions; higher scores indicate better image-text alignment (range: 0–100).images, textImageStatistical Metric
Image Instruction AdherenceMeasures how well generated images adhere to a given text instruction across subject, style, and composition.instruction, imagesImageLLM as Judge
Image PropertiesChecks image dimensions, format, and file size against configured constraints.textImageCode
SSIMMeasures Structural Similarity Index between two images across luminance, contrast, and structure.output, expectedImageStatistical Metric
PSNRMeasures Peak Signal-to-Noise Ratio between two images from mean squared error over RGB pixels.output, expectedImageStatistical Metric

Statistical & NLP metrics

Code-based scores for classification, regression, and text quality, no LLM judge involved

EvalDescriptionRequired InputsUse CasesEvaluation Method
AccuracyMeasures the fraction of predicted labels that exactly match expected labels.output, expectedText, ClassificationStatistical Metric
Balanced AccuracyAverages per-class recall, correcting for class imbalance that skews plain accuracy.output, expectedText, ClassificationStatistical Metric
F1 ScoreMeasures token-level overlap between output and expected text as the harmonic mean of precision and recall.output, expectedText, ClassificationStatistical Metric
F-Beta ScoreMeasures precision/recall on a chosen positive label, weighted toward precision or recall.output, expectedText, ClassificationStatistical Metric
Precision ScoreMeasures the fraction of predicted-positive labels that are actually positive.output, expectedText, ClassificationStatistical Metric
Cohen’s KappaMeasures inter-rater agreement between predicted and expected labels, adjusted for chance agreement.output, expectedText, ClassificationStatistical Metric
Matthews CorrelationMeasures balanced classification quality across all four confusion matrix categories.output, expectedText, ClassificationStatistical Metric
Fleiss’ KappaMeasures multi-rater agreement from a rating count matrix.outputText, ClassificationStatistical Metric
Log LossMeasures cross-entropy between predicted probabilities and true labels.output, expectedText, ClassificationStatistical Metric
RMSEMeasures root mean squared error between predicted and actual numeric values.output, expectedText, RegressionStatistical Metric
R2 ScoreMeasures the proportion of variance in actual values explained by predicted values.output, expectedText, RegressionStatistical Metric
Pearson CorrelationMeasures the strength of the linear relationship between two numeric arrays.output, expectedText, RegressionStatistical Metric
Spearman CorrelationMeasures the strength of the monotonic relationship between two numeric arrays.output, expectedText, RegressionStatistical Metric
METEOR ScoreMeasures unigram precision/recall with stemming and a fragmentation penalty.reference, hypothesisText, NLP MetricsStatistical Metric
chrF ScoreMeasures character n-gram F-score, robust for morphologically rich languages and short texts.reference, hypothesisText, NLP MetricsStatistical Metric
GLEU ScoreMeasures a sentence-level BLEU variant taking the min of precision and recall per n-gram order.reference, hypothesisText, NLP MetricsStatistical Metric
CodeBLEUMeasures n-gram BLEU blended with code-keyword matching.reference, hypothesisText, NLP MetricsStatistical Metric
Code ComplexityMeasures cyclomatic complexity of Python code via AST, lower complexity scores higher.textText, NLP MetricsStatistical Metric
Type-Token RatioMeasures lexical diversity as unique tokens divided by total tokens.textText, NLP MetricsStatistical Metric
Distinct-NMeasures vocabulary diversity as unique n-grams divided by total n-grams.textText, NLP MetricsStatistical Metric
Repetition RateMeasures repeated n-gram rate to flag degenerate or looping output.textText, NLP MetricsStatistical Metric
Readability ScoreMeasures Flesch Reading Ease, normalized to a 0-1 score.textText, NLP MetricsStatistical Metric
Sentence CountChecks sentence count against a configured min/max range.textText, NLP MetricsStatistical Metric
Translation Edit RateMeasures word-level edit distance to transform hypothesis into reference.reference, hypothesisText, NLP MetricsStatistical Metric
SQuAD ScoreMeasures SQuAD-style QA scoring as the average of exact match and token F1.output, expectedText, NLP MetricsStatistical Metric

Keep exploring

Was this page helpful?

Questions & Discussion