201 Downloads Updated yesterday
ollama run ahsanashlad2011/rp-judge:q4
Updated 2 days ago
2 days ago
0d4065656916 · 986MB
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.
| 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
{"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.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.
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.