Skip to main content
Ensuring the reliability and accuracy of LLM-generated responses is a critical challenge for production AI systems. Poor-quality training data, ambiguous labels, and untrustworthy outputs can degrade model performance and lead to unreliable results. Cleanlab TLM is a tool that estimates the trustworthiness of an LLM response. It provides a confidence score that helps detect hallucinations, ambiguous responses, and potential misinterpretations. This enables teams to flag unreliable outputs and improve the robustness of their AI systems. This guide demonstrates how to integrate Cleanlab’s Trustworthy Language Model (TLM) with Phoenix to systematically identify and improve low-quality LLM responses. By leveraging TLM for automated data quality assessment and Phoenix for response analysis, you can build more robust and trustworthy AI applications. Specifically, this tutorial will walk through:
  • Evaluating LLM-generated responses for trustworthiness.
  • Using Cleanlab TLM to score and flag untrustworthy responses.
  • Leveraging Phoenix for tracing and visualizing response evaluations.

Key Implementation Steps for generating evals w/ TLM

  1. Install Dependencies, Set up API Keys, Obtain LLM Responses + Trace in Phoenix
  2. Download Trace Dataset
  1. Prep data from trace dataset
  1. Setup TLM & Evaluate each pair
  1. Upload Evals to Phoenix
Check out the full tutorial here:

Google Colab