Views
No views yet

| Model | Parameters | Precision (%) | Recall (%) | F1 (%) | Hardware |
|---|---|---|---|---|---|
| TinyLettuce-17M | 17M | 84.56 | 98.21 | 90.87 | CPU |
| TinyLettuce-32M | 32M | 80.36 | 99.10 | 88.76 | CPU |
| TinyLettuce-68M | 68M | 89.54 | 95.96 | 92.64 | CPU |
| GPT-5-mini | ~200B | 71.95 | 100.00 | 83.69 | API |
| GPT-OSS-120B | 120B | 72.21 | 98.64 | 83.38 | GPU |
| Qwen3-235B | 235B | 66.74 | 99.32 | 79.84 | GPU |
pip install lettucedetect1from lettucedetect.models.inference import HallucinationDetector
2
3detector = HallucinationDetector(
4 method="transformer",
5 model_path="KRLabsOrg/tinylettuce-ettin-68m-en-v1",
6)
7
8spans = detector.predict(
9 context=[
10 "Ibuprofen is an NSAID that reduces inflammation and pain. The typical adult dose is 400-600mg every 6-8 hours, not exceeding 2400mg daily."
11 ],
12 question="What is the maximum daily dose of ibuprofen?",
13 answer="The maximum daily dose of ibuprofen for adults is 3200mg.",
14 output_format="spans",
15)
16print(spans)
17# Output: [{"start": 51, "end": 57, "text": "3200mg"}]1@misc{Kovacs:2025,
2 title={LettuceDetect: A Hallucination Detection Framework for RAG Applications},
3 author={Ádám Kovács and Gábor Recski},
4 year={2025},
5 eprint={2502.17125},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2502.17125},
9}