The distance metric to use for comparing the embeddings.
OptionalembeddingThe embedding objects to vectorize the outputs.
OptionalevaluationThe name of the evaluation.
OptionalmemoryOptionalskipOptionalskipRun the core logic of this chain and return the output
Return 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_Evaluate the output string pairs.
Optionalconfig: 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.
Return a json-like object representing this chain.
StaticdeserializeLoad a chain from a json-like object describing it.
Use embedding distances to score semantic difference between two predictions.