LLM Wrapper to use
Key to use for output, defaults to text
Prompt object to use
OptionalcriterionOptionalevaluationThe name of the evaluation.
OptionalllmKwargs to pass to LLM
OptionalmemoryOptionalskipEvaluate Chain or LLM output, based on optional input and label.
Optionalconfig: anyThe evaluation results containing the score or value. It is recommended that the dictionary contain the following keys:
StaticdeserializeLoad a chain from a json-like object describing it.
StaticfromLLMCreate a new instance of the CriteriaEvalChain.
Optionalcriteria: CriteriaLikeOptionalchainOptions: Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface>, "llm">>Options to pass to the constructor of the LLMChain.
StaticresolveResolve the criteria to evaluate.
Optionalcriteria: CriteriaLikeThe criteria to evaluate the runs against. It can be:
- a mapping of a criterion name to its description
- a single criterion name present in one of the default criteria
- a single ConstitutionalPrinciple instance
A dictionary mapping criterion names to descriptions.
Staticresolve
Criteria evaluation chain that requires references.