# load_evaluator

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/evaluation/loading/load_evaluator)

Load the requested evaluation chain specified by a string.

Parameters
----------
evaluator : EvaluatorType
    The type of evaluator to load.
llm : BaseLanguageModel, optional
    The language model to use for evaluation, by default None
**kwargs : Any
    Additional keyword arguments to pass to the evaluator.

Returns:
-------
Chain
    The loaded evaluation chain.

Examples:
--------
>>> from langchain_classic.evaluation import load_evaluator, EvaluatorType
>>> evaluator = load_evaluator(EvaluatorType.QA)

## Signature

```python
load_evaluator(
    evaluator: EvaluatorType,
    *,
    llm: BaseLanguageModel | None = None,
    **kwargs: Any = {},
) -> Chain | StringEvaluator
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/02991cb4cf2063d51a07268edafb05fe53de1826/libs/langchain/langchain_classic/evaluation/loading.py#L115)