RepositoryPythonATÁo
KRLabsOrg

KRLabsOrg/LettuceDetect

Span-level grounding verification for RAG, code, and tool-grounded AI outputs.

626sao
65fork
50issue
1lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: information-extraction

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: hallucination-evaluation

#1 Repository Của Tuần

2
TINIX TRENDING·Chủ đề: hallucination-detection

#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

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryPython
huggingface/transformers

🤗 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.

169.4k
Nov 22, 2026
Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

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...

♥0
164.7M
Jun 1, 2026
RepositoryPython
Comfy-Org/ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

148.3k
Nov 23, 2026
RepositoryPython
PaddlePaddle/PaddleNLP

Easy-to-use and powerful LLM and SLM library with awesome model zoo.

13.0k
May 23, 2026
Modeltoken-classification
dslim/bert-base-NER

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...

♥0
929.0k
Oct 8, 2024
Modeltoken-classification
fastino/gliner2-privacy-filter-PII-multi

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...

♥0
138.5k
Sep 28, 2026
RepositoryPython
NandhaKishorM/laya

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.

35.8k
Nov 21, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

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.

188.1k
Nov 21, 2026
RepositoryJupyter Notebook
rasbt/LLMs-from-scratch

Implement a ChatGPT-like LLM in PyTorch from scratch, step by step

108.8k
Nov 21, 2026