AustriaKRLabsOrg/LettuceDetect
Span-level grounding verification for RAG, code, and tool-grounded AI outputs.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository Của Tuần
#1 Repository Của Tuần
#2 Repository Của Tuần
🥬🔍 LettuceDetect: Kiểm tra thực tế cho AI — từ văn bản đến code
Phát hiện hallucination cấp độ span, nhanh và nhẹ, cho RAG, code agent, và tool output.
LettuceDetect là công cụ phát hiện hallucination trong hệ thống RAG (Retrieval-Augmented Generation). Nó so sánh câu trả lời với ngữ cảnh cung cấp để xác định các phần không được hỗ trợ. Được huấn luyện trên RAGTruth, dựa trên ModernBERT (tiếng Anh) và EuroBERT (đa ngôn ngữ), phù hợp với cửa sổ ngữ cảnh lớn.
✨ Điểm nổi bật
- Token-level precision: phát hiện chính xác các span bị hallucination
- Tối ưu inference: nhỏ gọn, nhanh
- Hỗ trợ cửa sổ ngữ cảnh dài: 4K (ModernBERT), 8K (EuroBERT)
- Đa ngôn ngữ: 7 ngôn ngữ
- MIT license: mã nguồn và mô hình miễn phí
- Tích hợp HuggingFace: tải mô hình chỉ bằng một dòng
- API Python đơn giản: cài qua pip, tích hợp nhanh vào hệ thống RAG
- June 2026: hỗ trợ phát hiện hallucination trong code và tool output
💡 Vì sao đáng chú ý
LettuceDetect khắc phục hai hạn chế của các mô hình hiện tại: giới hạn cửa sổ ngữ cảnh của encoder-based và hiệu suất kém của LLM-based. Trên RAGTruth, mô hình vượt trội các mô hình encoder-based và prompt-based khác, nhỏ gọn nhưng nhanh hơn và nhỏ hơn LLM lớn. Phiên bản mới mở rộng sang code agent, phát hiện hallucination trong API/identifier giả, giá trị sai, và hành vi không được yêu cầu.
#LettuceDetect #HallucinationDetection #RAG #NLP #OpenSource #TiniX
Similar Projects
Discover other similar projects and AI models.
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Easy-to-use and powerful LLM and SLM library with awesome model zoo.
bert-base-NER If my open source models have been useful to you, please consider supporting me in building small, useful AI models for everyone (and help me afford med school / help out my parents financially). Thanks! Model description bert-base-NER...
GLiNER2-PII: Multilingual PII Detection & Masking GLiNER2-PII is a fine-tune of the GLiNER2(https://github.com/fastino-ai/GLiNER2) model (205M parameters) for detecting and masking personally identifiable information across 42 entity types and 7 lan...
Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step