struct

Crig::SemanticSimilarityMetric(E)

Inherits Crig::Eval < Struct < Value < Object

Constructors

new(embedding_model : E, threshold : Float64, reference_answer : String, reference_answer_embedding : Crig::Embeddings::Embedding)
Source

Class methods

builder(embedding_model : E) : SemanticSimilarityMetricBuilder(E)
Source

Instance methods

embedding_model
Source
eval(input : String) : EvalOutcome(SemanticSimilarityMetricScore)
Source
reference_answer
Source
reference_answer_embedding
Source
threshold
Source