Qwen3.5-2B RAG Decision
fast evaluation of RAG responses
2 min readupdated
The model is built on Qwen3.5-2B (a 2.27 billion parameter language model) and trained to evaluate response quality in RAG systems (Retrieval-Augmented Generation — an approach with generation based on retrieved documents). It takes a query, a generated response, and retrieved snippets or images as input, and outputs numerical scores across 28 criteria, including accuracy, correctness, and citation. Compared to the base version, it runs 18 times faster and aligns more closely with Gemini scores.
Key features
- Scoring across 28 criteria: checks correctness, context adherence, and citation accuracy.
- High speed: delivers scores in just 0.30 seconds in a single pass.
- Result calibration: a built-in script applies calibration for maximum alignment with benchmark scores.
- Multimodality: supports not only text, but also images and document pages as evidence.
What you can do
- RAG system audit: automate quality checks for responses from your search index or knowledge base.
- Response benchmarking: quickly test new prompts or generation pipelines for hallucinations.
- Visual data analysis: verify correct image usage in multimodal responses.
Example
Running evaluation via a console script with specified criteria:
pip install -r requirements.txt
python inference.py example_prompt.txt --model . --criterion faithfulness --criterion answer_correctness
Read more
DetailsBenchmarks: mean deviation from Gemini dropped from 28.26 to 13.48 points.
Speed: 0.30 s per sample versus 5.57 s for the base model.
Training: 1 epoch on 60,284 samples with LoRA (rank 16) and an 8192 token budget.
Limitations: OCR accuracy drops after calibration on long contexts.










Comments