test_graph_routing.py
Protects conditional graph paths such as cache-hit routing, clarification routing, retrieval/news selection, calculator routing, and guardrails outcomes.
A static guide to what the repository tests and evaluation suites are trying to protect. Use the filters to focus on a behavior class.
Protects conditional graph paths such as cache-hit routing, clarification routing, retrieval/news selection, calculator routing, and guardrails outcomes.
Checks whether the router makes the right high-level decision for user intent: report retrieval, news, clarification, or direct answer.
Verifies that duplicate chunks from parallel retrieval branches are removed by a stable document key.
Checks the decision node behavior around retrieval, direct answers, ambiguity, and out-of-scope input.
Evaluates whether the RAG path can find relevant annual-report evidence for financial questions.
Protects deterministic financial math tools: generic calculate, growth rate, ratio, and average.
Checks whether questions that require arithmetic are routed and answered with calculated values.
Ensures empty or too-short context fails before answer generation.
Verifies that failed guardrails produce a helpful fallback instead of a broken answer.
Protects citation filtering, renumbering, source previews, and superscript conversion.
Checks boundary behavior such as unrelated questions and graceful refusal.