The Trustworthy Language Model scores the trustworthiness of outputs from any LLM in real-time.
Automatically detect hallucinated/incorrect responses in: Q&A (RAG), Chatbots, Agents, Structured Outputs, Data Extraction, Tool Calling, Classification/Tagging, Data Labeling, and other LLM applications.
Use TLM to:
- Guardrail AI mistakes before they are served to user
- Escalate cases where AI is untrustworthy to humans
- Discover incorrect LLM (or human) generated outputs in datasets/logs
- Boost AI accuracy
Powered by uncertainty estimation techniques, TLM works out of the box, and does not require:
data preparation/labeling work or custom model training/serving infrastructure.
- Documentation and Tutorials
- Example Notebooks
- Learn more and see precision/recall benchmarks with frontier models (from OpenAI, Anthropic, Google, etc):
Blog, Research Paper
This code implements a more effective variant of the BSDetector LLM uncertainty-quantification method from our paper:
@inproceedings{bsdetector,
title={Quantifying uncertainty in answers from any language model and enhancing their trustworthiness},
author={Chen, Jiuhai and Mueller, Jonas},
booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
pages={5186--5200},
year={2024}
}