KRLabsOrg/verbatim-rag

Hallucination-prevention RAG system with verbatim span extraction. Ensures all generated content is grounded in source documents with exact citations.

56
/ 100
Established

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.

Maintenance 13 / 25
Adoption 10 / 25
Maturity 18 / 25
Community 15 / 25

How are scores calculated?

Stars

170

Forks

21

Language

Python

License

MIT

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.