Skip to main content

AI evaluations — configuration, templates, assertions, and results

Use this reference with the support-assistant playbook. It describes the current V2 authoring surface and executable behavior, including where a template's promotional description is broader than what runs.

Entry, model and organization​

Open Data Quality → Add rule → AI eval rule. Choose one of the template cards or Blank eval rule. The currently eligible model connections are OpenAI Model and Ollama Model. Configure the model on that connection; the broader provider catalog elsewhere in the product does not establish Eval support.

Choose the Hub, dataset grouping name, rule name, rule type, dimension, category, severity and description. Dimensions are Accuracy, Completeness, Consistency, Timeliness, Uniqueness and Validity; severities are High, Medium and Low. These labels help owners find and triage rules; they are not an automatic release policy.

Existing AI evaluation definition in the production workspace

Product configuration evidence. The guide below distinguishes actual execution from template descriptions; no new evaluation was run to create this documentation.

Prompt and cases​

The prompt uses literal {{column}} substitution from each case object. It is not a full templating language: no loops, filters or expression evaluation. The optional Dataset editor accepts a JSON array of objects. Without dataset cases, the prompt runs once. A missing referenced variable fails that case.

Context must be supplied deliberately. For example, use {{policy}} and {{question}} in the prompt and provide both fields in every case. A field named retrievedContext does not trigger retrieval or inject itself into the prompt. Current Evals does not automatically retrieve a Knowledge Base, replay chat history or monitor a live trace stream.

An expected field in a case is also not automatically connected to an assertion's expected value. Configure the assertion itself. If exact expected answers differ by case, do not assume a single static exact-match assertion handles that variation.

The 15 template cards, plus Blank​

Templates are starting configurations. Review the actual prompt, expected values, schema and criteria before saving; do not rely on a template's label as proof of readiness.

TemplateSeeded assertion(s)Suitable starting question
RAG groundednessgroundednessDoes the answer stay within context you explicitly supplied?
FaithfulnessfaithfulnessDoes the response preserve the supplied material?
Answer relevanceanswer_relevanceDoes it address the question?
Helpfulness + tonehelpfulness, toneIs the response useful and appropriately phrased?
Hallucination detectorhallucinationDoes the judge identify unsupported claims under the rubric?
Toxicity guardrailtoxicityDoes the judge flag unacceptable content?
PII leakpii_leakDoes the response contain detected sensitive entities?
Jailbreak resistanceprompt_injectionDoes the response respect the intended instruction boundary?
Bias detectionbiasDoes the judge flag problematic bias under the rubric?
Output format — JSON schemais_json, json_schemaIs the output valid JSON with the required top-level contract?
Latency budgetlatencyDoes this individual execution meet a configured latency bound?
Cost budgetcostIs the approximate execution cost within its bound?
Exact matchexact_matchDoes output match one configured expected value?
Prompt regression suiteexact_match, answer_relevanceDo explicit output expectations still hold after a change?
Summarization qualityfaithfulness, output_lengthIs the summary faithful and within a character bound?
Blank eval ruleUser-configuredWhich explicit checks does this application need?

Some inherited template descriptions mention trace streams, classifier scores, weighted scoring or p95 latency. Those labels do not activate those behaviors. Execution is an offline prompt/case evaluation with the actual assertions described below.

Text and format assertions​

OperationWhat it evaluatesConfiguration and boundary
contains, not_containsPresence/absence of a substringExpected text; case-insensitive by default, with case sensitivity configurable
regex_match, regex_not_matchRegex search success/failurePattern and case sensitivity; anchor the pattern yourself for a whole-string requirement
exact_matchEquality to configured expected textBoth sides are trimmed; configurable case sensitivity
starts_with, ends_withPrefix or suffixConfigured text and case sensitivity
levenshteinEdit distance from a referenceReference value, maximum edit distance and case sensitivity
output_lengthCharacter countComparison and numeric threshold
token_countWhitespace-delimited word countAn approximate count, not model tokenizer output or a billing token count
is_jsonJSON parsingDoes not establish business correctness
json_schemaRequired keys and top-level property typesNot full JSON Schema validation; do not assume nested constraints or every schema keyword is enforced
is_xmlWell-formed XML parsingDoes not prove the document satisfies a domain schema
is_sqlSQL structure/recognized statement parsingDoes not execute SQL or prove correctness, permissions, read-only behavior or safety

Model-judged assertions​

llm_judge and its alias judge_llm require explicit criteria. Named judge assertions provide a built-in rubric, optionally overridden with criteria:

FamilyOperationsHow to use it
Evidence and relevancegroundedness, faithfulness, answer_relevance, context_relevance, hallucinationSupply the intended question/context and inspect the rubric's fit
Communication qualityhelpfulness, coherence, toneSpecify what the intended audience needs
Behavioral checksprompt_injection, toxicity, bias, profanityInclude representative normal and adversarial cases, then review failures

The judge uses the same selected rule model/source, with a binary PASS/FAIL verdict. There is no separately wired judge-provider selector or 1–5 score in this workflow. Toxicity, bias and profanity use model judging here, not a dedicated numeric classifier. Judges can disagree with human assessment; inspect the response and reason before changing a business policy.

PII and budget checks​

OperationBehaviorLimit
pii_leakPresidio detection, optional comma-separated entity types and minimum confidence (default 0.5)Uses English-language analysis; unavailable classifier dependencies fail the check. Detection is not exhaustive proof of absence; test false positives and false negatives
latencyCompares measured per-execution latency with a boundSeeded through its template; not p95 across a population
costCompares approximate model-family priced cost with a boundSeeded through its template; unavailable pricing fails explicitly; not the provider invoice

Latency and cost are runnable template-seeded kinds even though they are absent from the base create-form operation list. A seeded kind remains selectable in that rule's assertion control.

The merged dropdown can expose row_count, intended for SQL-result row counts; it is not a useful general metric of response quality. anomaly belongs to scalar/baseline data-quality evaluation rather than an advertised AI-response option. semantic_similarity and custom_python are not available execution paths; they are rejected pending embedding-model and sandbox support respectively.

How a run becomes pass or fail​

The normal saved-rule path combines assertions with AND and stops at the first failed assertion. There is no promised user-facing AND/OR selector. Assertion weight can appear in metadata, but does not determine runtime pass/fail. Therefore, “assertions evaluated” may be only a prefix of the configured list.

All dataset cases must pass. Cases beyond the effective case limit cause a failure rather than a successful partial run. A dataset deadline also fails unfinished cases. Keep the reason visible instead of treating an incomplete run as a quality score.

Limits and practical configuration​

SettingDefaultBoundary
Maximum response length50,000 charactersResponse is truncated before assertions; engine hard maximum 500,000
Timeout240 secondsDataset run deadline; hard maximum 270 seconds; do not assume identical enforcement on every single-call or SQL path
Assertion count20Engine hard maximum 50; count-limit control is not exposed in the inspected create form
Dataset case count25Engine hard maximum 50; count-limit control is not exposed in the inspected create form

Start below the effective default case limit, with short, high-value cases. Truncation changes what the assertions see, so set a response bound appropriate to the intended output and inspect captured responses. Include the extra model calls made by judge assertions when estimating run cost.

Results, schedules and notifications​

The rule editor provides Definition, Conditions, Schedule, Notifications, Results. Scheduling is shared with the quality-rule workflow; see centralized quality.

Select an execution in Results, then inspect each case's pass/fail, assertions passed/evaluated, failure message, expandable input/response and available tokens, latency and cost. Unknown metrics are not zero. Keep run pass rate separate from case pass rate, and compare unchanged case sets and grading criteria when judging a regression.

These options support a repeatable review of a defined scope. They do not create automatic production monitoring, a security certification, or a release gate without a separately designed operating process.

Review an evaluation plan for your AI application