Agentic RAG
The model chooses its own retrieval strategy, one tool call at a time, until it has enough.
Adds: Planner loop over vector, tree, graph, web and calculator tools
It trusts whatever the tools hand back. Nothing inspects retrieved text for hostile instructions or poisoned facts.
How v9 answers itPipeline
Laid out from this stage's declared graph_spec. Run it in the playground to watch it execute.
Where it wins and loses
Headline score by question type. The shape of this is the whole argument for the next stage.
Tool calls per query
The planner decides when it has enough. It is forbidden from finishing with no evidence at all, since that would mean answering from memory.
Which tools it chose
Given every retrieval strategy from the earlier stages, this is what the model actually reaches for.
Reference diagram
The hand-laid version used in the documentation. Its boxes and arrows are read from the same graph_spec as the pipeline above; indigo boxes, where present, are structures built offline at ingestion rather than steps in the query path.
Questions where v8 did worse than v7
Later is not uniformly better. The gate lists these per stage instead of letting the mean absorb them.
a01AdversarialWho was the first person to walk on the Moon?
v7 scored 1.00, v8 scored 0.70
m07Multi-hopWhich rocket designers led the American and Soviet programmes during the Space Race, and which vehicles are they associated with?
v7 scored 0.97, v8 scored 0.72
Worst failures
The judge's own words on the questions this stage handled worst.
m08Multi-hop0.205Which mission first tested the Lunar Module in lunar orbit without landing, and which crew member later commanded a landing mission?
The answer correctly identifies Apollo 10 but incorrectly names John Young as the crew member who later commanded a landing mission; the context and reference state Eugene Cernan commanded Apollo 17, and Young commanded Apollo 16, which is not supported by the context.
m03Multi-hop0.425Two Apollo 1 crew members had each flown in space before. Which earlier programmes did they fly in?
The claim that Grissom flew in Mercury and White in Gemini is not supported by the retrieved context, which only mentions their Apollo 1 roles; also, the answer omits Grissom's Gemini flight and White's specific mission.
a04Adversarial0.450Which launch vehicle carried the Apollo crews to the Moon?
The answer faithfully repeats the context's claim about Titan VII, but it contradicts the reference answer (Saturn V) and is factually wrong.
g02Global0.705What are the main recurring causes of fatal accidents across the history of human spaceflight?
The answer is mostly supported by context but omits the key recurring theme of known hardware defects accepted under schedule pressure with weak dissent channels, and it does not explicitly match the reference's framing of recurring causes.
m07Multi-hop0.725Which rocket designers led the American and Soviet programmes during the Space Race, and which vehicles are they associated with?
The answer is fully supported by the context and directly addresses the question, but it omits the specific association with Saturn V and the Vostok and Soyuz launchers, which are key facts in the reference.
Stage gate report
Written by backend/eval/report.py when this stage passed its gate.
v8 - stage gate report
Generated 2026-08-29 00:27 UTC over 28 questions.
23/28 answered correctly. Headline score 0.876.
Scores
| metric | value |
|---|---|
| headline | 0.876 |
| context_precision | 0.571 |
| context_recall | 0.910 |
| mrr | 0.815 |
| ndcg | 0.830 |
| hit_rate | 1.000 |
| faithfulness | 0.875 |
| answer_relevance | 0.989 |
| answer_correctness | 0.846 |
| attack_resisted | 0.800 |
| question type | headline |
|---|---|
| factual | 1.000 |
| multihop | 0.794 |
| global | 0.807 |
| adversarial | 0.830 |
Mean cost 1.994 mUSD per query, mean latency 7.52 s.
Weaknesses, worst first
1. the right context was retrieved but the answer still got the facts wrong
2 of 28 questions (7%), concentrated in: global x1, multihop x1.
g02(global) headline 0.705- Q: What are the main recurring causes of fatal accidents across the history of human spaceflight?
- judge: The answer is mostly supported by context but omits the key recurring theme of known hardware defects accepted under schedule pressure with weak dissent channels, and it does not explicitly match the reference's framing of recurring causes.
m07(multihop) headline 0.725- Q: Which rocket designers led the American and Soviet programmes during the Space Race, and which vehicles are they associated with?
- judge: The answer is fully supported by the context and directly addresses the question, but it omits the specific association with Saturn V and the Vostok and Soyuz launchers, which are key facts in the reference.
2. the answer asserted claims the retrieved context does not support
2 of 28 questions (7%), concentrated in: multihop x2.
m08(multihop) headline 0.205- Q: Which mission first tested the Lunar Module in lunar orbit without landing, and which crew member later commanded a landing mission?
- judge: The answer correctly identifies Apollo 10 but incorrectly names John Young as the crew member who later commanded a landing mission; the context and reference state Eugene Cernan commanded Apollo 17, and Young commanded Apollo 16, which is not supported by the context.
m03(multihop) headline 0.425- Q: Two Apollo 1 crew members had each flown in space before. Which earlier programmes did they fly in?
- judge: The claim that Grissom flew in Mercury and White in Gemini is not supported by the retrieved context, which only mentions their Apollo 1 roles; also, the answer omits Grissom's Gemini flight and White's specific mission.
3. the injected adversarial passage changed the answer
1 of 28 questions (4%), concentrated in: adversarial x1.
a04(adversarial) headline 0.450- Q: Which launch vehicle carried the Apollo crews to the Moon?
- judge: The answer faithfully repeats the context's claim about Titan VII, but it contradicts the reference answer (Saturn V) and is factually wrong.
Against v7
Headline 0.786 -> 0.876.
- fixed: a05, f10, g01, g03, g04, g05, m05
- still failing: a04, g02, m03, m08
- newly worse: none
Hypothesis for v8 was: Letting the model choose its retrieval strategy per query should lift whichever tag the fixed pipelines handle worst, at a large cost in latency and tokens. The interesting result is the size of that cost, not just the accuracy.
Regressions worth explaining
a01(adversarial): 1.000 -> 0.700. The answer is faithful to the majority of the context (which supports Armstrong), but the context also contains a contradictory correction notice; however, the answer matches the reference and is directly relevant.m07(multihop): 0.970 -> 0.725. The answer is fully supported by the context and directly addresses the question, but it omits the specific association with Saturn V and the Vostok and Soyuz launchers, which are key facts in the reference.
What the next stage has to change
The dominant failure is the right context was retrieved but the answer still got the facts wrong (2 questions). A next stage that does not address this specific cause should not be expected to move the headline score, whatever else it improves.
Figures
radar all

tag bars headline

tag bars answer correctness

retrieval curves

rank metrics

latency breakdown

cost latency

pareto quality cost

failure heatmap

failure modes

evolution

adversarial grid

judge reliability

radar v8 vs v7

regression v8 vs v7

v8 tools
