15 · RAG evaluation · Open weights

Which retrieved sentences matter.

cbx-rag-context-relevance-68M

Marks which retrieved context sentences are relevant to the question.

Real inputs it was built for.

Open any example in the Playground to see the live output.

Financial

What was the company's revenue growth in 2023?

Run it

Contract

How much notice does either party need to give to terminate the agreement?

Run it

Benchmark

Measured against the alternative.

0.000

Relevance fraction error, RMSE (lower is better) — FinQA reports

Full results ↗
  • cbx-rag-context-relevance-68M0.054
  • GPT-3.5 judge0.103
  • RAGAS0.106
  • TruLens0.793

From the model card

Judges which retrieved context sentences are relevant to the question. Give it the question and the passages. It returns:

It is one of four CBX RAG evaluator models.

Model

68M

Licence

Apache 2.0

Fine-tuned from

jhu-clsp/ettin-encoder-68m

Read the full model card ↗

Full results. Every number, from the card.

  • Labels: CUAD uses reviewed labels: RAGBench's long clause-block labels were rejected by audit in most cases and replaced by the majority of RAGBench and two Claude Haiku passes. FinQA uses RAGBench labels.
  • Constant: predicts the validation average.

Sentence level:

Test setAUROC [95% CI]PR-AUC [95% CI]Precision / recall at the thresholdPositives
CUAD contracts0.933 [0.920, 0.945]0.372 [0.321, 0.421]0.40 / 0.421.5% of 104,725 sentences
FinQA reports0.977 [0.972, 0.982]0.858 [0.839, 0.877]0.81 / 0.796.1% of 53,640 sentences

Answer-level relevance fraction: RMSE, lower is better. Baselines are RAGBench's stored scores, on the answers they cover.

Test setThis modelRAGASGPT-3.5TruLensConstant
CUAD contracts0.0470.0570.1180.6660.050
FinQA reports0.0540.1060.1030.7930.081

On CUAD the model beats RAGAS and GPT-3.5 significantly, but not the constant (0.044 vs 0.047 over all answers, a difference within noise).

Context precision (FinQA, 2,281 answers with a relevant passage): RMSE 0.164 [0.143, 0.184], against 0.209 for a constant. RAGBench stores no context-precision baselines. It is not available for single-document contexts.

Know its limits. Before you ship it.

Limitations

  • CUAD sentence precision and recall are only about 0.4. A blind Claude Sonnet audit found that about 3 in 4 of the model's misses, and 1 in 4 of its false alarms, were label errors. So the true quality is probably higher than measured, but this is not quantified.
  • It disagrees with RAGBench's CUAD labels on purpose. On those block labels its AUROC is 0.72.
  • Not reported: evidence completeness (relevant sentences the answer used). Combined with cbx-rag-context-utilization it did not beat a constant.
  • Cost: every context sentence is scored, about 0.5 s per 280-sentence contract on a GPU.
  • Coverage: two domains (contracts, financial reports), English, LLM-made labels.

Training data

What it learned from.

01

Source

The CUAD (contracts) and FinQA (financial reports) subsets of RAGBench (CC BY 4.0). Its answers were written by claude-3-haiku and gpt-3.5-turbo; its labels came from gpt-4-turbo. - Train: 1,530 CUAD and 12,502 FinQA answers. - Test: 510 CUAD (102 contracts) and 2,294 FinQA answers.

02

Labels were reviewed by LLMs, not humans

- Faithfulness: majority vote of RAGBench and two LLM reviewers: Claude Haiku and gpt-5.4-mini, or two Haiku passes for CUAD train. - CUAD context relevance / utilization: majority vote of RAGBench and two Claude Haiku passes. - FinQA context labels: kept as RAGBench made them. - Audits: samples were checked blind by Claude Opus and Claude Sonnet.

03

Response relevance

Uses its own set (rr-v0.1). Claude Haiku wrote varied answers to the RAGBench questions and labelled them.

04

Test sets

The RAGBench test splits, with the same label views.

05

Baselines

RAGAS, GPT-3.5 and TruLens scores are the ones stored in RAGBench, not re-runs.

06

Rule

Every threshold and setting was fixed on validation.

One size. Smaller is faster, larger is more accurate.

Run it on your own data. In the CobuildX Console.

Sign in to the console to call this model live, compare sizes and create an API key.