pub struct EvalTextSimilarityGrader {
pub type: String,
pub name: Option<String>,
pub input: String,
pub reference: String,
pub pass_threshold: f64,
pub evaluation_metric: String,
}
Expand description
A TextSimilarityGrader object which grades text based on similarity metrics.
Fields§
§type: String
The type of grader.
name: Option<String>
The name of the grader.
input: String
The text being graded.
reference: String
The text being graded against.
pass_threshold: f64
A float score where a value greater than or equal indicates a passing grade.
evaluation_metric: String
The evaluation metric to use.
Trait Implementations§
Source§impl Clone for EvalTextSimilarityGrader
impl Clone for EvalTextSimilarityGrader
Source§fn clone(&self) -> EvalTextSimilarityGrader
fn clone(&self) -> EvalTextSimilarityGrader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EvalTextSimilarityGrader
impl Debug for EvalTextSimilarityGrader
Source§impl Default for EvalTextSimilarityGrader
impl Default for EvalTextSimilarityGrader
Source§fn default() -> EvalTextSimilarityGrader
fn default() -> EvalTextSimilarityGrader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvalTextSimilarityGrader
impl RefUnwindSafe for EvalTextSimilarityGrader
impl Send for EvalTextSimilarityGrader
impl Sync for EvalTextSimilarityGrader
impl Unpin for EvalTextSimilarityGrader
impl UnwindSafe for EvalTextSimilarityGrader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more