Author
Listed:
- Lakshmanan A
- Nithyanandh S
- Mohanapriya D
Abstract
Retrieval-augmented generation (RAG) gives a language model access to external evidence, but retrieval alone does not ensure that a generated answer is supported by that evidence. This paper presents VeriRAG, a middleware-oriented design that separates query screening and evidence retrieval from answer verification. According to the supplied project documentation, the first stage handles conversational or unsuitable requests and retrieves records through a TF–IDF index with unigram–bigram features, cosine similarity, content-word overlap, and a small set of attribute-specific rules. The second stage compares retrieved evidence with a candidate answer and returns a binary support decision, confidence, explanation, and interface status. The documented knowledge base contains 10,000 evidence–question–answer triplets, reported as equally divided between sUPPoRTED and HALLUcInATED labels. The system is exposed through FastAPI middleware and a Streamlit interface designed around progressive disclosure: an answer is shown first and supporting evidence and verification details are revealed on demand. The principal contribution is an inspectable division of responsibility between scope control, retrieval, and evidence-grounded classification rather than a claim that retrieval eliminates hallucination. Because the source archive, dataset, serialized estimators, Transformer checkpoint, and executable tests were not supplied, model priority, training history, dataset provenance, predictive accuracy, and latency could not be independently audited. Consequently, this study reports the documented architecture and a reproducible evaluation plan while treating artifact-level figures as project-reported values rather than experimental findings.
Suggested Citation
Lakshmanan A & Nithyanandh S & Mohanapriya D, 2026.
"Hallucination Detection Middleware using RAG Based Model,"
International Journal of Scientific Research in Computer Science, Engineering and Information Technology, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 12(5), pages 360-372, September.
Handle:
RePEc:jbh:ijsrcs:v12:y2026:i5:id:2183
DOI: 10.32628/CSEIT2612556
Note: Article URL: https://ijsrcseit.com/home/article/view/CSEIT2612556
Download full text from publisher
Corrections
All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:jbh:ijsrcs:v12:y2026:i5:id:2183. See general information about how to correct material in RePEc.
If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.
We have no bibliographic references for this item. You can help adding them by using this form .
If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.
For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (email available below). General contact details of provider: https://ijsrcseit.com/home .
Please note that corrections may take a couple of weeks to filter through
the various RePEc services.