pub struct LlmJudgeScorer {
pub model: Arc<dyn JudgeModel>,
pub prompt_template: String,
}Expand description
Single-criterion graded scorer — “did the actual output answer the
expected question correctly?”. The judge replies pass / fail
followed by a short justification.
Fields§
§model: Arc<dyn JudgeModel>§prompt_template: StringImplementations§
Source§impl LlmJudgeScorer
impl LlmJudgeScorer
pub fn new(model: Arc<dyn JudgeModel>) -> Self
Trait Implementations§
Source§impl AsyncScorer for LlmJudgeScorer
impl AsyncScorer for LlmJudgeScorer
Auto Trait Implementations§
impl Freeze for LlmJudgeScorer
impl !RefUnwindSafe for LlmJudgeScorer
impl Send for LlmJudgeScorer
impl Sync for LlmJudgeScorer
impl Unpin for LlmJudgeScorer
impl UnsafeUnpin for LlmJudgeScorer
impl !UnwindSafe for LlmJudgeScorer
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