1
|1
| | Recall |0.89
|0.92
| | F1 |0.94
|0.96
| | Throughput | GPT-4 | | :---------- | :------ | | 100 Samples | 124 Sec | # Refusal Source: https://arizeai-433a7140.mintlify.app/docs/phoenix/evaluation/pre-built-metrics/refusal Detect when an LLM refuses or declines to answer a user query. ## Overview The **Refusal** evaluator detects when an LLM refuses, declines, or avoids answering a user query. It captures explicit refusals, scope disclaimers, lack-of-information responses, safety refusals, redirections, and apologetic non-answers. ### When to Use Use the Refusal evaluator when you need to: * **Detect explicit refusals** - Identify responses like "I can't help with that" or "I'm unable to answer" * **Flag scope disclaimers** - Catch responses claiming the question is outside the LLM's responsibilities * **Identify lack-of-information responses** - Detect responses like "I don't have that information" * **Spot redirections** - Find responses that deflect to other resources without answering * **Monitor refusal rates** - Track how often your LLM declines to engage with user queries0.60
|0.70
| | Recall |0.77
|0.88
| | F1 |0.67
|0.78
| | Throughput | GPT-4 | | :---------- | :------ | | 100 Samples | 113 Sec | # SQL Generation Source: https://arizeai-433a7140.mintlify.app/docs/phoenix/evaluation/pre-built-metrics/sql-generation-eval SQL Generation is a common approach to using an LLM. In many cases the goal is to take a human description of the query and generate matching SQL to the human description.0.87
|0.79
| | Recall |0.63
|0.88
| | F1 |0.73
|0.83
| # Agent Function Calling Eval Source: https://arizeai-433a7140.mintlify.app/docs/phoenix/evaluation/pre-built-metrics/tool-calling-eval The Agent Function Call eval can be used to determine how well a model selects a tool to use, extracts the right parameters from the user query, and generates the tool call code.0.86
|0.91
| | Recall |1.0
|0.91
| | F1 |0.92
|0.91
| # Code Evaluators Source: https://arizeai-433a7140.mintlify.app/docs/phoenix/evaluation/server-evals/code-evaluators Write Python or TypeScript evaluators directly in Phoenix and run them in a managed sandbox — no SDK, local runtime, or deploy step required. Code evaluators let you author a custom evaluation function in **Python** or **TypeScript** and attach it directly to a dataset. Phoenix stores the source, executes it server-side in a sandbox, and records labels and scores as annotations on each experiment run — the same way LLM evaluators do, but with deterministic code instead of a judge model. Reach for a code evaluator when you want full control over how the evaluation is built: * Call third-party APIs or evaluation services, pull in your own libraries, or mix multiple LLMs inside a single judge. * Compose custom logic — parsers, validators, scoring formulas, structural diffs — alongside any model calls you need. * Craft the eval exactly the way you want it, without being constrained to a single built-in judge template. * Run a deterministic, code-only path next to your LLM judges — repeatable scores with no per-call model cost.