References

Python modules

  • Github - LettuceDetect
    • Key Features:
      • Token-level precision: detect exact hallucinated spans
      • Optimized for inference: smaller model size and faster inference
      • 4K context window via ModernBERT
      • MIT-licensed models & code
      • HF Integration: one-line model loading
      • Easy to use python API: can be downloaded from pip and few lines of code to integrate into your RAG system