> ## Documentation Index
> Fetch the complete documentation index at: https://neuraltrust-92b43583-develop.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

LLM as a Judge evaluators are a powerful approach to evaluating language model outputs by using another language model to assess the quality, correctness, and appropriateness of responses. This method has become increasingly important in the field of AI evaluation due to its ability to capture complex patterns and relationships between inputs and outputs.

## Why LLM as a Judge is Important

LLM as a Judge evaluators are crucial because they:

1. **Capture Nuance**: They can understand and evaluate complex, context-dependent aspects of responses that traditional metrics might miss.
2. **Flexible Assessment**: They can adapt to different evaluation criteria and domains without requiring extensive retraining.
3. **Human-like Judgment**: They can provide evaluations that more closely resemble human judgment compared to rule-based approaches.
4. **Comprehensive Analysis**: They can assess multiple aspects of a response simultaneously, including correctness, completeness, tone, and relevance.

But there are some drawbacks:

* **Cost**: Requires additional LLM API calls, which can increase operational costs
* **Latency**: Evaluation time is dependent on the LLM's response time
* **Potential Bias**: May inherit biases from the judging LLM
* **Consistency**: May show some variation in evaluations across different runs
* **Dependency**: Relies on the availability and reliability of the judging LLM

## Current TrustTest LLM as a Judge Evaluators

TrustTest provides these LLM as a Judge evaluators:

1. **[Correctness](/trusttest/evaluate-result/llm-as-a-judge/correctness)**: Factual accuracy against an expected response
2. **[Completeness](/trusttest/evaluate-result/llm-as-a-judge/completeness)**: Coverage of the expected response
3. **[Tone](/trusttest/evaluate-result/llm-as-a-judge/tone)**: Tone and style
4. **[URL Correctness](/trusttest/evaluate-result/llm-as-a-judge/url-correctness)**: URLs in the response
5. **[True/False](/trusttest/evaluate-result/llm-as-a-judge/true-false)**: Pass/fail from `ObjectiveContext` descriptions (default for most catalog threat probes)
6. **[Answer Relevance](/trusttest/evaluate-result/llm-as-a-judge/answer-relevance)**: How well the answer addresses the question (`QuestionContext`)
7. **[RAG Poisoning](/trusttest/evaluate-result/llm-as-a-judge/rag-poisoning)**: Whether the answer follows poisoned retrieval context
8. **[Custom](/trusttest/evaluate-result/llm-as-a-judge/custom)**: `CustomEvaluatorExpected` and `CustomEvaluatorObjective` — there is no `CustomEvaluator` class

<Note>
  We recommend using LLM as a Judge evaluators instead of Heuristic evaluators because they can understand semantic relationships and reason about the content. Unlike rule-based approaches.
</Note>
