LLM Wrapper to use
Key to use for output, defaults to text
Prompt object to use
Optional
criterionOptional
evaluationThe name of the evaluation.
Optional
llmKwargs to pass to LLM
Optional
memoryOptional
skipEvaluate Chain or LLM output, based on optional input and label.
Optional
config: anyThe evaluation results containing the score or value. It is recommended that the dictionary contain the following keys:
Static
deserializeLoad a chain from a json-like object describing it.
Static
fromLLMCreate a new instance of the CriteriaEvalChain.
Optional
criteria: CriteriaLikeOptional
chainOptions: Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface>, "llm">>Options to pass to the constructor of the LLMChain.
Static
resolveResolve the criteria to evaluate.
Optional
criteria: 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.
Static
resolve
Criteria evaluation chain that requires references.