Downloads · 30 days
0
ambrosehui/flan-t5-small-rag-hallucinations-judgment
flan-t5-small-rag-hallucinations-judgment is a text classification model from ambrosehui. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
Downloads · 30 days
0
Access
Public
Updated Feb 17, 2026
Repo size
17.5 MB
Likes
0
Public
Click a slice to open those files.
.pt11.2 MB · 56%
From the Hugging Face model README

This repository features a fine-tuned Flan-T5-Small model designed to identify Hallucinations in Retrieval-Augmented Generation (RAG) pipelines. The model evaluates the consistency between a provided context and the generated answer, classifying the output as either Faithful (Consistent) or Hallucinated (Inconsistent).
input = f"context:{content}\nquestion:{question}\nanswer:{answer}"
The model was evaluated on a specialized RAG validation set. Based on the current test results, the model achieves perfect separation between classes.
| Predicted: Faithful | Predicted: Hallucinated | |
|---|---|---|
| Actual: Faithful | 69 (True Negative) | 0 (False Positive) |
| Actual: Hallucinated | 0 (False Negative) | 31 (True Positive) |
The current evaluation shows an ideal performance profile. With zero False Negatives, the model successfully caught every instance of hallucination in the test set. However, users should note that such perfect scores often indicate a highly specific or constrained test dataset; real-world performance may vary as linguistic complexity increases.
Important: While this model achieved 100% accuracy on the provided test set, it should not be considered infallible. Hallucination detection is a subjective and context-dependent task. This model serves as a heuristic "sanity check" and should be used alongside other RAG evaluation frameworks (such as RAGAS or Faithfulness metrics) for mission-critical applications.
As a Flan-T5-Small based model, the context window is limited. Extremely long retrieval documents may be truncated, potentially leading to "False Hallucination" flags if the supporting evidence is cut off during inference.