Skip to main content
Failure Analysis (FA) classifies your AI outputs into failure buckets and subcategories, scores severity, and explains root causes — so you can fix the actual problem, not just observe metrics.
New to Valiqor? Start with the 5-minute quickstart to see FA in action before diving into this full guide.

Two analysis modes

Pass your existing AI inputs/outputs directly — no tracing required.
Each item in the dataset requires:
  • input (str) — the user prompt/query
  • output (str) — the model’s response
  • context (list[str], optional) — retrieved documents / reference passages
  • tool_calls (list[dict], optional) — tool invocations

Full run() signature

run() is transparent-async — if the backend returns HTTP 202, the SDK auto-polls until complete. For explicit async control, use run_async() instead.

Async analysis

For large datasets or when you want non-blocking execution:
See the Async & Batch guide for more details.

Reading results

Summary

Failure tags

Linked results

FA can run eval and security alongside analysis:

Filtering by bucket or subcategory

Focus analysis on specific failure types:

Feature kind hints

Tell FA what kind of app you’re analyzing for better classification:

Browsing the failure taxonomy


Run history and analytics


Playground (single-item)

Quick single-item analysis for testing — rate-limited to 10/day, 2/min:

CI/CD gating


CLI


Fix the Failure →

Learn how to interpret results and fix root causes.

Failure Taxonomy →

Understand buckets, subcategories, and classification.