Spaces:
Sleeping
Sleeping
metadata
title: Hallucination Firewall
emoji: 🛡️
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
Verification-Driven Hallucination Firewall (VDHF)
A modular Python system that verifies RAG (Retrieval-Augmented Generation) outputs before delivering them to users, preventing AI hallucinations.
Upload documents (TXT, PDF, DOCX, Excel, CSV), ask questions, and get verified answers with every claim checked against your content.
How It Works
- Upload Documents - Upload any document to the system
- Ask Questions - Query your uploaded content
- Claim Extraction - Every factual claim in the response is identified
- Verification - Each claim is checked against your uploaded data
- Firewall Decision - Response is marked as Verified, Partially Verified, or Hallucinated
- Regeneration - If needed, a safer response is generated
Features
- Excel/CSV direct data analysis (no ML models needed)
- Student comparison and filter queries
- Claim verification against uploaded data
- Hallucination detection for non-existent records
- Groq LLM-powered analysis for complex questions
- Beautiful React frontend with tabular response rendering
Tech Stack
- Backend: FastAPI + Python
- Frontend: React + Vite + Tailwind CSS
- ML: Sentence-BERT, DeBERTa NLI
- Vector DB: ChromaDB
- LLM: Groq API