Discover and explore top open-source AI tools and projects—updated daily.
Hallucination detection framework for RAG applications
Top 62.6% on SourcePulse
LettuceDetect is a hallucination detection framework for Retrieval-Augmented Generation (RAG) systems, designed to identify unsupported parts of an answer by comparing it against provided context. It targets developers and researchers working with RAG, offering a lightweight, efficient, and precise solution to improve the factual accuracy of AI-generated responses.
How It Works
LettuceDetect employs a token-level classification approach, inspired by encoder-based models like Luna and leveraging ModernBERT for extended context processing. This method allows for precise identification of hallucinated spans within an answer. The framework addresses limitations of traditional encoder models by overcoming context window constraints and offers greater computational efficiency compared to LLM-based detection methods.
Quick Start & Requirements
pip install lettucedetect
or pip install -e .
for development.KRLabsOrg/lettucedect-base-modernbert-en-v1
and KRLabsOrg/lettucedect-large-modernbert-en-v1
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 week ago
1 day