OptionalcriterionOptionalevaluationThe name of the evaluation.
LLM Wrapper to use
OptionalllmKwargs to pass to LLM
OptionalmemoryKey to use for output, defaults to text
Prompt object to use
OptionalskipReturn the string type key uniquely identifying this class of chain.
Evaluate the output string pairs.
Optionalconfig: anyA dictionary containing the preference, scores, and/or other information.
Protected_Run the core logic of this chain and add to output if desired.
Wraps _call and handles memory.
Optionalconfig: anyEvaluate the output string pairs.
OptionalcallOptions: unknownOptionalconfig: anyA dictionary containing the preference, scores, and/or other information.
Invoke the chain with the provided input and returns the output.
Input values for the chain run.
Optionaloptions: anyPromise that resolves with the output of the chain run.
StaticdeserializeLoad a chain from a json-like object describing it.
StaticfromCreate a new instance of the PairwiseStringEvalChain.
Optionalcriteria: CriteriaLikeThe criteria to use for evaluation.
OptionalchainOptions: Partial<Options to pass to the chain.
Staticlc_StaticresolveOptionalcriteria: CriteriaLikeStaticresolveOptionalprompt: any
A chain for comparing two outputs, such as the outputs of two models, prompts, or outputs of a single model on similar inputs.