resolve_pairwise_criteria#
- langchain.evaluation.comparison.eval_chain.resolve_pairwise_criteria(criteria: Mapping[str, str] | Criteria | ConstitutionalPrinciple | str | List[Mapping[str, str] | Criteria | ConstitutionalPrinciple] | None) dict [source]#
Resolve the criteria for the pairwise evaluator.
- Parameters:
criteria (Union[CRITERIA_TYPE, str, List[CRITERIA_TYPE]], optional)
use. (The criteria to)
- Returns:
The resolved criteria.
- Return type:
dict