← all repositories

KRLabsOrg/LettuceDetect

Lightweight hallucination detection framework for identifying unsupported content in RAG system outputs.

578 stars Python LLMOps · EvalRAG · Search
LettuceDetect
Velocity · 7d
+1.2
★ / day
Trend
steady
star history

LettuceDetect is a token-classification framework that detects hallucinations by comparing LLM-generated answers against provided context in RAG systems. It leverages encoder-based models like ModernBERT and EuroBERT trained on the RAGTruth dataset to identify hallucinated tokens at the sequence level. The framework addresses context window limitations of traditional encoders and computational inefficiency of LLM-based approaches while achieving competitive accuracy on evaluation benchmarks.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.