agrag.eval.resolution.resolution_case
resolution_case(mentions:Sequence[str], predicted:ClusterAssignment, gold:ClusterAssignment) -> LLMTestCase
Build a test case that holds predicted and gold clusters.
Parameters:
- mentions (
Sequence[str]) – The mention texts. They show in DeepEval reports. - predicted (
ClusterAssignment) – The clusters the resolver formed. - gold (
ClusterAssignment) – The gold clusters.
Returns:
LLMTestCase– A test case with serialized predicted and gold clusters.