Skip to content
Visual explainer 3h 30m to learn 4 steps

Compare model-only, fixed RAG and agentic RAG baselines

Run model-only, fixed RAG and agentic RAG over identical cases and set rollout thresholds from deterministic checks and calibrated grading.

By Invicly Tech, , in Generative AI, Agentic AI and RAG. About 10 minutes to read.

Topic 28 of 34

In short

Regression baselines compare the model-only, fixed RAG and agentic RAG versions of the assistant over exactly the same cases, scorers and dataset version. Deterministic checks run first because they are cheap and repeatable; model grading is added only for fuzzy qualities and is calibrated against human labels. The results set rollout thresholds, so a new version ships only when it beats or matches the current one on agreed numbers.

Explained simply

By now the assistant exists in three versions: one that just asks the model, one that always retrieves documents first, and one agent that chooses when and how to search. Which is best? You only find out by running all three on exactly the same questions and scoring them in exactly the same way.

Start with checks that do not need judgement. Did it give the right kind of result? Did it cite the right documents? Did it leak anything from another scope? Was the output valid? Did it stay inside its time and token limits? These checks are cheap, fast and give the same answer every time.

Some qualities are harder to check with rules, such as whether an answer is complete and clear. For those you can ask a model to grade using a written rubric. But a grader can be wrong, so first compare its grades with grades from people on a sample. If they agree often enough, you can use it. If not, you fix the rubric or keep people in the loop.

Finally, you agree on numbers that a new version must hit before it goes live. For example: no leaks at all, at least 90 percent correct outcomes, and no more than double the cost. These are your rollout thresholds.

Press Play on a diagram to walk through it one step at a time.

FlowOne regression run
  1. 1
    Pin inputs

    Dataset version, prompts, models, index version

  2. 2
    Run three versions

    Model-only, fixed RAG, agentic RAG

  3. 3
    Deterministic checks

    Outcome, sources, scope, schema, budgets

  4. 4
    Calibrated grading

    Only for fuzzy qualities, sampled against people

  5. 5
    Compare to thresholds

    Ship, hold or roll back

CompareTypical strengths of the three versions (illustrative)
Model-only
  • Fastest and cheapest
  • No citations
  • Repeats outdated training facts
  • Cannot respect document scopes
Fixed RAG
  • One retrieval per request
  • Cites sources
  • Predictable latency and cost
  • Struggles with multi-step or vague questions
Agentic RAG
  • Can clarify or reformulate
  • Combines several searches
  • Higher and more variable cost
  • More paths to test

In depth

Making the comparison fair

A fair comparison pins everything except the thing you are testing. Use one dataset version, one corpus and index version, one set of caller scopes and one scoring module. Run the three versions in the same job so the environment is the same. If you use a real model, keep the model ID and sampling settings identical across versions and run each case more than once, because outputs vary between runs.

The model-only version cannot cite sources, so it will fail source checks by design. That is the point: it shows what retrieval adds. It may still pass unanswerable cases if it says it does not know, and it often fails outdated cases by repeating old facts the model learned in training.

  • Same dataset, index, scopes and scorers
  • Same model ID and settings for every version
  • Several runs per case with a real model
  • Record all versions in the report header

Deterministic checks first

Run rule-based checks before anything else and store each as its own column: outcome match, expected sources cited, forbidden sources absent, schema valid, must-include facts present, tool constraints met, within latency and token budgets. Any check marked blocking, such as a cross-scope source, fails the case outright.

This order saves money and keeps results stable. If a case fails a deterministic check, there is no need to ask a grader about style. It also makes regressions easy to explain: a report that says auth-004 now cites hr-salaries#s3 is far more useful than a score that dropped from 4.2 to 3.9.

Calibrating a model grader against people

A model grader reads the question, the answer, the cited passages and a short rubric, and returns a label such as supported, partly supported or unsupported. Before trusting it, have two people label a sample of the same outputs, say 40 cases, without seeing the grader's labels. Measure agreement: the share of cases where the grader matches the human label. Also look at where it disagrees, because a grader that is too lenient on unsupported answers is worse than one that is too strict.

If agreement is too low, tighten the rubric, add labelled examples to the grader prompt, or split one fuzzy question into two clearer ones. Re-check agreement whenever you change the grader prompt or model. Pin the grader's model ID so its behaviour does not drift silently.

CycleGrader calibration loop
  1. 1
    Sample outputs

    Mixed passes and failures

  2. 2
    People label

    Two reviewers, blind to the grader

  3. 3
    Measure agreement

    Overall and per label

  4. 4
    Fix the rubric

    Clearer wording or examples

  5. Back to step 1

Setting rollout thresholds

Thresholds turn results into a decision. Write them before you see the candidate's numbers. Use absolute floors for safety, such as zero cross-scope disclosures and zero forbidden tool calls. Use relative rules for quality, such as the candidate must not lose more than one case in any category compared to the current version. Use cost and latency ceilings, such as p95 latency under 4 seconds and median cost no more than twice fixed RAG.

With small datasets, a difference of one or two cases can be noise. Look at the cases that changed, not only the totals. If the agent wins only on ambiguous cases, consider routing just those to the agent and keeping fixed RAG for the rest.

  • Safety floors: zero leaks, zero forbidden calls
  • No category may regress by more than one case
  • Latency and cost ceilings
  • Review changed cases by hand

Learn it in 4 short steps

About 55m each. Track them with a timer in your plan.

  1. 1
    Run all three versions on the same cases~55m
  2. 2
    Apply deterministic checks first~55m
  3. 3
    Calibrate model grading against people~55m
  4. 4
    Set rollout thresholds~55m

Key points

  • The comparison is only fair when all versions see identical cases, caller scopes and scoring code.
  • Deterministic checks (outcome type, source IDs, scope leaks, schema, budgets) come before any model grader.
  • A model grader is a measuring tool; check its agreement with human labels before trusting it.
  • Set thresholds per category, with zero tolerance for cross-scope disclosure.
  • Agentic RAG must earn its extra latency and cost with measurable gains over fixed RAG.

Key terms

Tap a card to flip it. 0/6 known

Examples

Reading a three-way report

On 40 cases (illustrative figures): model-only gets 14 correct outcomes, fixed RAG 33 and agentic RAG 35. Step 1: check safety. All three have zero cross-scope disclosures. Step 2: look by category. The agent's two extra wins are both ambiguous cases where it asked a clarifying question. Step 3: look at cost. Median cost is 1.1x fixed RAG on answerable cases but 2.6x on ambiguous ones. Step 4: decide. The agent passes the thresholds, so it can roll out, with a note to watch cost on ambiguous traffic.

A threshold gate in code

Step 1: compute per-version summaries from case results. Step 2: compare the candidate to the current version against written thresholds. Step 3: return a list of reasons. An empty list means ship. CI runs this after the evaluation job and fails the pipeline if any reason is returned.

python
def gate(cand, base, t):
    reasons = []
    if cand["leaks"] > 0:
        reasons.append(f"{cand['leaks']} cross-scope disclosures")
    for cat, n in cand["correct_by_cat"].items():
        if base["correct_by_cat"][cat] - n > t["max_cat_drop"]:
            reasons.append(f"{cat} regressed")
    if cand["p95_ms"] > t["p95_ms"]:
        reasons.append("p95 latency over budget")
    if cand["median_cost"] > t["cost_ratio"] * base["median_cost"]:
        reasons.append("cost ratio over budget")
    return reasons

Quick reference

  • Same cases, scopes, index and scorers for all three versions
  • Deterministic checks first; model grading only for fuzzy qualities
  • Calibrate graders on a human-labelled sample; pin the grader model
  • Zero tolerance for cross-scope disclosures
  • Thresholds per category, not just one average
  • Write thresholds before looking at candidate results
  • Repeat each case several times with a real model to see variation

Common mistakes

  • Comparing versions run on different days with different dataset versions or index contents.
  • Trusting a model grader's scores without ever checking them against people.
  • Using one overall average, which lets a gain on easy cases hide a new failure on denied requests.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1Why does the model-only version fail source checks?

Question 2

2Your model grader agrees with people on 60 percent of a sample, mostly by passing unsupported answers. What should you do?

Question 3

3Which threshold is a safety floor rather than a quality target?

Question 4

4The candidate wins by one case on a 30-case set. What is the best next step?

Question 5

5When should rollout thresholds be written?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Given a list of case results with version and passed fields, print the pass rate for each version.

  2. Exercise 2medium

    Compute agreement between grader labels and human labels, overall and for cases humans marked unsupported.

  3. Exercise 3hard

    List the case IDs that passed on the baseline but fail on the candidate (regressions) and the reverse (fixes), given two dicts of case_id to passed.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is agentic RAG always better than fixed RAG?
No. It often helps with vague or multi-step questions but costs more and varies more. Many teams keep fixed RAG as the default and route only some requests to an agent.
Do I need human reviewers at all?
Yes, at least to calibrate any model grader and to review label changes. Deterministic checks can then run on every change without people.
How do I deal with random variation in model output?
Run each case several times with a real model and look at the spread. Use the deterministic stub in CI so routine runs are repeatable.

Go deeper

ShareXLinkedInWhatsApp