pub struct Judge { /* private fields */ }Expand description
An LLM grades the candidate’s answer against the baseline’s.
Implementations§
Trait Implementations§
Source§impl Scorer for Judge
impl Scorer for Judge
fn name(&self) -> String
fn score<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
case: &'life1 EvalCase,
c: &'life2 RunSummary,
) -> Pin<Box<dyn Future<Output = Score> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for Judge
impl !UnwindSafe for Judge
impl Freeze for Judge
impl Send for Judge
impl Sync for Judge
impl Unpin for Judge
impl UnsafeUnpin for Judge
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