199 yesterday

A 1.5B evidence judge for RAG agents: decides if retrieved passages are enough to answer a question and returns a JSON verdict. Distilled from gpt-oss-120b into Qwen2.5-1.5B. 79.6% accuracy vs 70.9% for a 4B judge; 5x faster per question in the agent.

ollama run ahsanashlad2011/rp-judge:q4

Models

View all →

Readme

rp-judge

A 1.5B evidence judge for retrieval-augmented generation (RAG). Given a question and the passages an agent retrieved, it decides whether those passages are enough to answer and returns a structured JSON verdict.

The model was distilled from gpt-oss-120b into Qwen2.5-1.5B-Instruct with LoRA fine-tuning. It is built for the evaluate step of the ResearchPilot agent, where it replaced a 4B general model.

Tags

Tag Format Size Test accuracy Use
q8 Q8_0 1.6 GB 79.6% Default; the version served in production
q4 Q4_K_M 1.0 GB 80.7% Low-memory machines (same accuracy)
ollama pull ahsanashlad2011/rp-judge:q8

Output

{"sufficient": false,
 "missing_information": ["how the agent decides when to stop"],
 "relevant_source_ids": ["S1", "S4"],
 "confidence": "medium"}
  • sufficient: answer now, or search again.
  • missing_information: hints for the next search.
  • relevant_source_ids: which passages matter.
  • confidence: low, medium or high.

Input

The model was trained on ResearchPilot’s evaluate prompt. The system message is the judge instructions plus the JSON schema. The user message is the question, then up to 6 passages, each labelled [S1] (paper.pdf, page 3) and cut at 1,200 characters. Use JSON mode ("format": "json"). Temperature 0 and a 4,096-token context are already set.

Results

On 285 held-out test cases:

Judge Accuracy Wrongly says “sufficient”
rp-judge q8 79.6% 26.8%
rp-judge q4 80.7% 16.5%
gpt-oss-120b (teacher) 74.0% 45.1%
qwen3.5:4b (previous judge) 70.9% 23.8%
Qwen2.5-1.5B, untrained, 4-shot 57.2% 61.0%

Inside the ResearchPilot agent (67 questions): - The median time per question fell from 29 s to 6 s. - Answer quality held at 87.9% correct, against 84.5% with the 4B judge.

On a CPU-only laptop, the judge takes 28.7 s per call against 58.2 s for the 4B.

Training

  • Data: 2,187 examples from 40 CC-BY arXiv papers. Training inputs were captured from a real agent loop, plus edited variants whose answer is known by construction.
  • Labels: from gpt-oss-120b, audited against span-verified labels. 217 provably wrong labels were corrected.
  • Fine-tuning: LoRA, rank 16, 2 epochs, on one T4 GPU (98 minutes).

Limitations

  • Its main failure is accepting partial evidence as complete, a weakness it shares with its teacher.
  • It was trained on English ML research papers with one prompt format; other domains are untested.
  • It judges whether the passages cover the question, not whether they are true.

Links