KRLabsOrg/verbatim-rag
Hallucination-prevention RAG system with verbatim span extraction. Ensures all generated content is grounded in source documents with exact citations.
Implements pluggable span extractors—either LLM-based or fine-tuned ModernBERT models—to extract verbatim passages from retrieved documents rather than allowing free-form generation. The entire pipeline can run without LLMs and on CPU-only hardware using SPLADE sparse embeddings and Milvus vector storage, with both core extraction logic and a full web interface (FastAPI + React) included.
170 stars. Available on PyPI.
Stars
170
Forks
21
Language
Python
License
MIT
Category
Last pushed
Mar 10, 2026
Commits (30d)
0
Dependencies
20
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/rag/KRLabsOrg/verbatim-rag"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related tools
onestardao/WFGY
WFGY: open-source reasoning and debugging infrastructure for RAG and AI agents. Includes the...
iMoonLab/Hyper-RAG
"Hyper-RAG: Combating LLM Hallucinations using Hypergraph-Driven Retrieval-Augmented Generation"...
frmoretto/clarity-gate
Stop LLMs from hallucinating your guesses as facts. Clarity Gate is a verification protocol for...
anulum/director-ai
Real-time LLM hallucination guardrail — NLI + RAG fact-checking with token-level streaming halt....
project-miracl/nomiracl
NoMIRACL: A multilingual hallucination evaluation dataset to evaluate LLM robustness in RAG...