/ Модель

Характеристики

Контекст
8 192 токена
Параметры
212 млн
Лицензия
MIT
Архитектура
eurobert · dense
Базовая модель
EuroBERT-210m
Опубликована
18 мая 2025

lettucedect-210m-eurobert-es-v1

Заполнение пропусковТекст → текст6 профессий

Модель на EuroBERT-210M, которая находит неподтверждённые контекстом фрагменты испанских ответов для проверки галлюцинаций в RAG-системах.

226скачиваний за 30 дней0лайковвеса обновлены22 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

LettuceDetect от KRLabsOrg — модель на базе EuroBERT-210M для выявления галлюцинаций в ответах на испанском языке в системах RAG. Она получает контекст и ответ и выполняет токенную классификацию: отмечает фрагменты ответа, которые не подтверждаются контекстом, чтобы затем собрать их в объяснимые spans. Модель содержит 211,7 млн параметров, поддерживает контекст до 8192 токенов и дообучена на испанской версии датасета RAGTruth.

На переведённом наборе RAGTruth-ES авторы сообщают F1 71,38%; модель показывает более высокий recall, чем сравниваемый prompt-based подход GPT-4.1-mini, и работает примерно втрое быстрее варианта EuroBERT-610M. Это оценка на конкретном тестовом наборе и не гарантирует такую же точность на других данных. Лицензия — MIT. README также предупреждает о несовместимости загружаемого удалённого кода EuroBERT с Transformers 5.x.

Сценарии применения

  • выделение неподтверждённых фрагментов в ответах RAG
  • проверка ответов на соответствие контексту на испанском языке
  • разметка spans с возможными галлюцинациями
  • оценка надёжности ответов языковой модели по предоставленным документам

Ограничения

Оценка F1 71,38% получена на переведённом наборе RAGTruth-ES и может не переноситься на другие данные. Загружаемый удалённый код EuroBERT несовместим с Transformers 5.x.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

LettuceDetect: Spanish Hallucination Detection Model

Note: this model loads EuroBERT remote code that is not yet compatible with transformers 5.x. Install pip install "transformers>=4.48.3,<5" to use it (see LettuceDetect#33).

Model Name: lettucedect-210m-eurobert-es-v1 Organization: KRLabsOrg
Github: https://github.com/KRLabsOrg/LettuceDetect

Overview

LettuceDetect is a transformer-based model for hallucination detection on context and answer pairs, designed for multilingual Retrieval-Augmented Generation (RAG) applications. This model is built on EuroBERT-210M, which has been specifically chosen for its extended context support (up to 8192 tokens) and strong multilingual capabilities. This long-context capability is critical for tasks where detailed and extensive documents need to be processed to accurately determine if an answer is supported by the provided context.

This is our Spanish base model utilizing EuroBERT-210M architecture

Model Details

  • Architecture: EuroBERT-210M with extended context support (up to 8192 tokens)
  • Task: Token Classification / Hallucination Detection
  • Training Dataset: RagTruth-ES (translated from the original RAGTruth dataset)
  • Language: Spanish

How It Works

The model is trained to identify tokens in the Spanish answer text that are not supported by the given context. During inference, the model returns token-level predictions which are then aggregated into spans. This allows users to see exactly which parts of the answer are considered hallucinated.

Usage

Installation

Install the 'lettucedetect' repository

pip install lettucedetect

Using the model

from lettucedetect.models.inference import HallucinationDetector

# For a transformer-based approach:
detector = HallucinationDetector(
    method="transformer", 
    model_path="KRLabsOrg/lettucedect-210m-eurobert-es-v1",
    lang="es",
    trust_remote_code=True
)

contexts = ["Francia es un país de Europa. La capital de Francia es París. La población de Francia es de 67 millones."]
question = "¿Cuál es la capital de Francia? ¿Cuál es la población de Francia?"
answer = "La capital de Francia es París. La población de Francia es de 69 millones."

# Get span-level predictions indicating which parts of the answer are considered hallucinated.
predictions = detector.predict(context=contexts, question=question, answer=answer, output_format="spans")
print("Predicciones:", predictions)

# Predicciones: [{'start': 33, 'end': 76, 'confidence': 0.9215637326240539, 'text': ' La población de Francia es de 69 millones.'}]

Performance

Results on Translated RAGTruth-ES

We evaluate our Spanish models on translated versions of the RAGTruth dataset. The EuroBERT-210M Spanish model achieves an F1 score of 71.38%, outperforming prompt-based methods like GPT-4.1-mini (62.40%) with an improvement of +8.98 percentage points.

For detailed performance metrics, see the table below:

LanguageModelPrecision (%)Recall (%)F1 (%)GPT-4.1-mini F1 (%)Δ F1 (%)
SpanishEuroBERT-210M69.4873.3871.3862.40+8.98
SpanishEuroBERT-610M76.3270.4173.2562.40+10.85

While the 610M variant achieves higher F1 score, the 210M model offers a good balance between accuracy and computational efficiency, processing examples approximately 3× faster. It also shows particularly strong recall performance.

Citing

If you use the model or the tool, please cite the following paper:

@misc{Kovacs:2025,
      title={LettuceDetect: A Hallucination Detection Framework for RAG Applications}, 
      author={Ádám Kovács and Gábor Recski},
      year={2025},
      eprint={2502.17125},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2502.17125}, 
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · fill-mask

Можно запустить

Подбираем GPU…

Класс архитектуры
EuroBertForTokenClassification
Ревизия весов
7698129

0 моделей