pub struct SemanticMatchResult {
pub score: f64,
pub equivalent: bool,
pub reasoning: String,
}Available on crate feature
eval only.Expand description
Result of semantic similarity evaluation
Fields§
§score: f64Similarity score (0.0 - 1.0)
equivalent: boolWhether responses are considered equivalent
reasoning: StringReasoning for the score
Trait Implementations§
Source§impl Clone for SemanticMatchResult
impl Clone for SemanticMatchResult
Source§fn clone(&self) -> SemanticMatchResult
fn clone(&self) -> SemanticMatchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SemanticMatchResult
impl RefUnwindSafe for SemanticMatchResult
impl Send for SemanticMatchResult
impl Sync for SemanticMatchResult
impl Unpin for SemanticMatchResult
impl UnsafeUnpin for SemanticMatchResult
impl UnwindSafe for SemanticMatchResult
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