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
skipStatic
deserializeLoad a chain from a json-like object describing it.
Static
fromLLMCreate a new instance of the PairwiseStringEvalChain.
Optional
criteria: CriteriaLikeThe criteria to use for evaluation.
Optional
chainOptions: Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface>, "llm">>Options to pass to the chain.
Static
resolveOptional
criteria: CriteriaLikeStatic
resolve
A chain for comparing two outputs, such as the outputs of two models, prompts, or outputs of a single model on similar inputs.