Skip to main content
Valiqor’s Failure Analysis doesn’t just detect failures — it traces each failure back to its root cause, assigns a severity score, computes a confidence level, and suggests remediation.

How It Works

Every dataset item or trace is analyzed against Valiqor’s failure taxonomy. For each applicable subcategory, a classification decision is produced along with a severity score and confidence level.

Failure Decisions

Each subcategory check produces one of four decisions:

Severity

Severity measures how bad a failure is, on a 0–5 scale. Higher severity means greater potential impact on the user, the business, or safety. Valiqor computes severity automatically based on the failure type, its context, and how frequently it recurs.
Failures associated with high-risk security categories (e.g. self-harm, PII exposure, hate speech) are automatically escalated to critical severity.

Frequency Amplification

When the same failure type recurs across multiple items in a dataset, severity is amplified. Isolated issues score lower than systemic patterns.

Confidence

Confidence measures how certain Valiqor is about a classification, on a 0.0–1.0 scale. Confidence increases when multiple independent signals agree:
  • Rule-based detectors confirm the failure
  • LLM judge classifies the failure
  • Evaluation metrics corroborate the finding
  • Security classifiers flag related content
When signals disagree, confidence is reduced and the result may be flagged for human review.

Reading FATag Results

Every failure is returned as an FATag with these key fields:

Judge Rationale

For LLM-judge-detected failures, the judge_rationale field contains the judge’s explanation:

Evidence

Each tag includes structured evidence linking back to the original data:

Eval Metric Values

The eval_metric_values dict shows which evaluation metrics were used as supporting evidence:

Automation Flags

The FARunResult summary includes built-in flags for automation:

Summary Statistics


Interpreting Results

High Severity + High Confidence → Act Now

Reliable, serious failures. Set up automated alerts and CI gates.

High Severity + Low Confidence → Review

The system suspects a serious failure but evidence is ambiguous. Queue for human review — the needs_human_review flag catches these automatically.

Low Severity + High Confidence → Monitor

Real but minor issues. Track trends with get_trends() — if frequency increases, severity will be amplified.

Unsure Decision → Investigate

The detector couldn’t reach a conclusion. This typically means the input data is insufficient for classification (e.g. missing context for RAG checks). Provide richer data for better results.

Complete Example

See the Failure Analysis workflow for end-to-end usage and the Failure Taxonomy for the full list of detectable failure types.