Skip to main content
Legacy Evaluator: This evaluator is from phoenix-evals 1.x and will be removed in a future version. You can migrate the template to a custom evaluator as shown below.

When To Use Summarization Eval Template

This Eval helps evaluate the summarization results of a summarization task. The template variables are:
  • document: The document text to summarize
  • summary: The summary of the document

Summarization Eval Template

How To Run the Summarization Eval

The above shows how to use the summarization Eval template.

Benchmark Results

This benchmark was obtained using notebook below. It was run using a Daily Mail CNN summarization dataset as a ground truth dataset. Each example in the dataset was evaluating using the SUMMARIZATION_PROMPT_TEMPLATE above, then the resulting labels were compared against the ground truth label in the summarization dataset to generate the confusion matrices below.

Google Colab

colab.research.google.com

Try it out!

GPT-4 Results