Skip to main content
Composite evaluators are a way to combine multiple evaluator scores into a single score. This is useful when you want to evaluate multiple aspects of your application and combine the results into a single result. This guide describes setting up an evaluation that uses multiple evaluators and combines their scores with a custom aggregation function using the LangSmith SDK.
Requires langsmith>=0.4.29
To create composite evaluators in the LangSmith UI, refer to How to create a composite evaluator (UI).

1. Configure evaluators on a dataset

Start by configuring your evaluators. In this example, the application generates a tweet from a blog introduction and uses three evaluators—summary, tone, and formatting—to assess the output. If you already have your own dataset with evaluators configured, you can skip this step.

2. Create composite feedback

Create composite feedback that aggregates the individual evaluator scores using your custom function. This example uses a weighted average of the individual evaluator scores.