Skip to main content
Valiqor’s Failure Analysis engine classifies every failure into a two-level taxonomy: top-level buckets (L1) group related failure types, and subcategories (L2) identify the specific failure mode. This taxonomy is the foundation that powers severity scoring, root cause detection, and actionable remediation suggestions.

Taxonomy Hierarchy


Buckets (L1)

There are 4 failure buckets in the current taxonomy (v0):

Subcategories (L2)

Each bucket contains specific failure subcategories. There are 15 subcategories in the current taxonomy:

Instruction & Task Compliance

Hallucination & Grounding

Retrieval (RAG) Failures

Tool & Function Failures


Application Types

The applies_to field controls which subcategories are active based on your application type. Set this via the feature_kind parameter in run(): When you specify feature_kind="rag", only subcategories that apply to RAG apps (plus universal ones) are evaluated. This keeps results relevant and reduces LLM judge calls.

Detection Approaches

Each subcategory uses one of three detection approaches:

Deterministic

Rule-based checks that don’t require an LLM. Fast, cheap, and highly reproducible. Used for format validation, tool argument checking, and pattern matching.

LLM Judge

An LLM evaluates the input/output against the subcategory definition. Used for semantic analysis like hallucination detection, intent resolution, and relevance assessment.

Hybrid

Deterministic pre-filter followed by LLM judge confirmation. Combines speed of rules with accuracy of LLM judgment. Used for fabrication detection and citation verification.

Metric Correlations

Each subcategory is linked to evaluation metrics that provide supporting evidence. For example, unsupported_factual_claim correlates with metrics like hallucination and factual_accuracy. When Failure Analysis detects a failure, it cross-references evaluation metric scores to strengthen or weaken its confidence in the classification. This means running evaluations alongside Failure Analysis produces higher-quality results.

Taxonomy Versioning

The taxonomy is versioned and frozen to ensure reproducibility:
  • v0 — 4 buckets, 15 subcategories (current)
  • New subcategories can be added in future versions without breaking existing classifications
  • Each FATag result includes the taxonomy version used
The taxonomy is designed to be extensible. Future versions may add new buckets (e.g. multi-modal failures) or subcategories without changing existing classifications.

SDK Access

You can browse the taxonomy programmatically:
See the Failure Analysis workflow for complete usage examples.