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.
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.
| Template | Seeded assertion(s) | Suitable starting question |
|---|---|---|
| RAG groundedness | groundedness | Does the answer stay within context you explicitly supplied? |
| Faithfulness | faithfulness | Does the response preserve the supplied material? |
| Answer relevance | answer_relevance | Does it address the question? |
| Helpfulness + tone | helpfulness, tone | Is the response useful and appropriately phrased? |
| Hallucination detector | hallucination | Does the judge identify unsupported claims under the rubric? |
| Toxicity guardrail | toxicity | Does the judge flag unacceptable content? |
| PII leak | pii_leak | Does the response contain detected sensitive entities? |
| Jailbreak resistance | prompt_injection | Does the response respect the intended instruction boundary? |
| Bias detection | bias | Does the judge flag problematic bias under the rubric? |
| Output format — JSON schema | is_json, json_schema | Is the output valid JSON with the required top-level contract? |
| Latency budget | latency | Does this individual execution meet a configured latency bound? |
| Cost budget | cost | Is the approximate execution cost within its bound? |
| Exact match | exact_match | Does output match one configured expected value? |
| Prompt regression suite | exact_match, answer_relevance | Do explicit output expectations still hold after a change? |
| Summarization quality | faithfulness, output_length | Is the summary faithful and within a character bound? |
| Blank eval rule | User-configured | Which 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
| Operation | What it evaluates | Configuration and boundary |
|---|---|---|
contains, not_contains | Presence/absence of a substring | Expected text; case-insensitive by default, with case sensitivity configurable |
regex_match, regex_not_match | Regex search success/failure | Pattern and case sensitivity; anchor the pattern yourself for a whole-string requirement |
exact_match | Equality to configured expected text | Both sides are trimmed; configurable case sensitivity |
starts_with, ends_with | Prefix or suffix | Configured text and case sensitivity |
levenshtein | Edit distance from a reference | Reference value, maximum edit distance and case sensitivity |
output_length | Character count | Comparison and numeric threshold |
token_count | Whitespace-delimited word count | An approximate count, not model tokenizer output or a billing token count |
is_json | JSON parsing | Does not establish business correctness |
json_schema | Required keys and top-level property types | Not full JSON Schema validation; do not assume nested constraints or every schema keyword is enforced |
is_xml | Well-formed XML parsing | Does not prove the document satisfies a domain schema |
is_sql | SQL structure/recognized statement parsing | Does 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:
| Family | Operations | How to use it |
|---|---|---|
| Evidence and relevance | groundedness, faithfulness, answer_relevance, context_relevance, hallucination | Supply the intended question/context and inspect the rubric's fit |
| Communication quality | helpfulness, coherence, tone | Specify what the intended audience needs |
| Behavioral checks | prompt_injection, toxicity, bias, profanity | Include 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
| Operation | Behavior | Limit |
|---|---|---|
pii_leak | Presidio 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 |
latency | Compares measured per-execution latency with a bound | Seeded through its template; not p95 across a population |
cost | Compares approximate model-family priced cost with a bound | Seeded 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
| Setting | Default | Boundary |
|---|---|---|
| Maximum response length | 50,000 characters | Response is truncated before assertions; engine hard maximum 500,000 |
| Timeout | 240 seconds | Dataset run deadline; hard maximum 270 seconds; do not assume identical enforcement on every single-call or SQL path |
| Assertion count | 20 | Engine hard maximum 50; count-limit control is not exposed in the inspected create form |
| Dataset case count | 25 | Engine 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