The distance metric to use for comparing the embeddings.
Optional
embeddingThe embedding objects to vectorize the outputs.
Optional
evaluationThe name of the evaluation.
Optional
memoryOptional
skipOptional
skipRun the core logic of this chain and return the output
Return the string type key uniquely identifying this class of chain.
Evaluate Chain or LLM output, based on optional input and label.
The evaluation results containing the score or value. It is recommended that the dictionary contain the following keys:
Protected
_Evaluate 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:
Invoke the chain with the provided input and returns the output.
Input values for the chain run.
Optional
options: anyPromise that resolves with the output of the chain run.
Return a json-like object representing this chain.
Static
deserializeLoad a chain from a json-like object describing it.
Use embedding distances to score semantic difference between a prediction and reference.