Internal R&D Active experiment

P.01 / 2026

AI Engineering

Retrieval, measured

An evaluation workbench for retrieval-augmented systems.

Retrieval evaluation workbench schematicA query enters a retriever, candidate passages are ranked, and an evaluator compares them to expected evidence. A trace records the run. A conceptual diagram, not a screenshot.R&D / RETRIEVAL EVALUATIONRUN 014 / DIFFQUERYRETRIEVEEVALUATEREPORTEXPECTED EVIDENCECANDIDATE 01CANDIDATE 02EXPECTED / RANK 03CANDIDATE 04TRACEquery → candidates → ranking → score → evidenceREVIEWEDAVAILABLERETRIEVEDCITEDREVIEWED

Conceptual schematic / not a screenshot.

A small evaluation workbench for RAG systems: fixed query sets, traceable runs, and failure cases that stay visible.

Type
Internal R&D
Discipline
AI Engineering
Status
Active experiment

Project note.

Retrieval-augmented generation is often judged by a handful of impressive answers. That is not enough to make an engineering decision. Changing a chunking strategy, an embedding model, or a reranker can improve one class of query while quietly damaging another.

This internal project explores a smaller, stricter question: can we make every retrieval change legible enough to accept or reject with evidence? The workbench pairs a versioned document corpus with query sets, expected evidence, and a run log. It is deliberately unglamorous.

01 Problem

What made itdifficult.

The interesting part is rarely the happy path. These are the conditions that shaped the work.

The interesting failures are rarely total. A system returns a fluent answer with one missing source, or the right passage ranked just below the cutoff. Aggregate scores can hide both. The tool needed to preserve the specific failure and show what changed between runs.

The second challenge was reproducibility. Live model APIs introduce cost, latency, and variation into every test. For evaluation, stored responses and deterministic fixtures are often more useful than another live call.

02 Constraints

The edgeswere the design.

A constraint is only useful when it eliminates an option. These are the boundaries the project had to respect.

  • Runs locally with a single command; no hosted evaluation service.
  • The corpus and query set must be versioned together.
  • Every score must link to the exact retrieved passages.
  • Failures are categorised, not averaged away.
  • Model providers are replaceable; the harness is not tied to one API.

03 Architecture

The system,in parts.

A component view. The diagram above is a conceptual schematic; this is the responsibility map behind it.

  1. 01

    Corpus

    Versioned documents, chunks, and metadata snapshots with stable identifiers.

    P.01.1
  2. 02

    Retriever

    Pluggable lexical, vector, and hybrid strategies behind one interface.

    P.01.2
  3. 03

    Evaluation

    Query sets, expected evidence, graded relevance, and failure labels.

    P.01.3
  4. 04

    Trace

    A record of the query, candidate set, ranking, scores, and timing.

    P.01.4
  5. 05

    Report

    Run-to-run diffs and a review view that prioritises regressions.

    P.01.5

04 Decisions

What we chose,and why.

Architecture is the set of decisions that are expensive to reverse. These are the ones that shaped the project.

D.01

Evidence before scores

Each metric is a link back to the retrieved passages and the query that produced them. A number without its evidence is treated as incomplete.

D.02

Fixtures over live APIs

Stored model responses keep a test run reproducible. Live calls are reserved for a separate, explicitly labelled integration pass.

D.03

Failure is a first-class record

Misses, partial answers, bad citations, and overconfident responses have distinct labels. The review view surfaces them before aggregate metrics.

D.04

Small enough to trust

The harness is intentionally narrow. It evaluates retrieval and evidence selection, not the entirety of an application.

05 Method

How itevolved.

A short account of the work, including what changed direction.

The project began as a script that compared two chunk sizes. It became a workbench when the script could not explain why a run had changed. The first addition was a trace; the second was a diff. Both were more valuable than another metric.

Current work is on query-set maintenance and review ergonomics. The aim is a tool small enough to keep using during delivery, not a separate platform with its own roadmap.

Artefacts

  1. Artifact 01

    Evaluation ledger

    A versioned record of query, expected evidence, retrieved evidence, score, and failure label.

  2. Artifact 02

    Run diff

    A regression-first view of what changed between two retrieval configurations.

  3. Artifact 03

    Failure taxonomy

    Shared labels for misses, partial evidence, ranking errors, and unsupported answers.

Next / Project inquiry

RX / INQ

Have something worth engineering?

Context Project / Retrieval, measured
First step A conversation
Format Written brief or call

Tell us what you are building, what is getting in the way, and what good looks like. We will reply with a considered next step.