Optional
criterionOptional
evaluationOptional
llmOptional
memoryOptional
skipOptional
config: any[]Use .batch() instead. Will be removed in 0.2.0.
This feature is deprecated and will be removed in the future.
It is not recommended for use.
Call the chain on all inputs in the list
Check if the evaluation arguments are valid.
Optional
reference: stringThe reference label.
Optional
input: stringThe input string.
If the evaluator requires an input string but none is provided, or if the evaluator requires a reference label but none is provided.
Evaluate the output string pairs.
Optional
callOptions: unknownOptional
config: anyA dictionary containing the preference, scores, and/or other information.
Static
deserializeStatic
fromLLMCreate a new instance of the PairwiseStringEvalChain.
Optional
criteria: "detail" | ConstitutionalPrinciple | { The criteria to use for evaluation.
Optional
chainOptions: Partial<Omit<LLMEvalChainInput<EvalOutputType, BaseLanguageModelInterface>, "llm">>Options to pass to the chain.
Static
resolveOptional
criteria: "detail" | ConstitutionalPrinciple | { Static
resolveGenerated using TypeDoc
A chain for comparing two outputs, such as the outputs of two models, prompts, or outputs of a single model on similar inputs, with labeled preferences.