View Source ExOpenAI.Components.EvalGraderTextSimilarity (ex_openai.ex v2.0.0-beta2)
Module for representing the OpenAI schema EvalGraderTextSimilarity.
Fields
:evaluation_metric- required -:cosine | :fuzzy_match | :bleu | :gleu | :meteor | :rouge_1 | :rouge_2 | :rouge_3 | :rouge_4 | :rouge_5 | :rouge_l
The evaluation metric to use. One ofcosine,fuzzy_match,bleu,gleu,meteor,rouge_1,rouge_2,rouge_3,rouge_4,rouge_5, orrouge_l.
Allowed values:"cosine","fuzzy_match","bleu","gleu","meteor","rouge_1","rouge_2","rouge_3","rouge_4","rouge_5","rouge_l":input- required -String.t()
The text being graded.:name- required -String.t()
The name of the grader.:pass_threshold- required -number()
The threshold for the score.:reference- required -String.t()
The text being graded against.:type- required -:text_similarity
The type of grader.
Allowed values:"text_similarity"
Default:"text_similarity"
Summary
Types
@type t() :: %ExOpenAI.Components.EvalGraderTextSimilarity{ evaluation_metric: (((((((((:cosine | :fuzzy_match) | :bleu) | :gleu) | :meteor) | :rouge_1) | :rouge_2) | :rouge_3) | :rouge_4) | :rouge_5) | :rouge_l, input: String.t(), name: String.t(), pass_threshold: number(), reference: String.t(), type: :text_similarity }