pub struct PairwiseJudge<M: BaseChatModel> { /* private fields */ }Expand description
成对比较评测器(用 LLM 当裁判,二选一)。
注意:成对比较接口与单点 Evaluator 不同(需要两个预测),故不实现 Evaluator trait,
通过 compare 方法调用。
Implementations§
Auto Trait Implementations§
impl<M> Freeze for PairwiseJudge<M>where
M: Freeze,
impl<M> RefUnwindSafe for PairwiseJudge<M>where
M: RefUnwindSafe,
impl<M> Send for PairwiseJudge<M>
impl<M> Sync for PairwiseJudge<M>
impl<M> Unpin for PairwiseJudge<M>where
M: Unpin,
impl<M> UnsafeUnpin for PairwiseJudge<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for PairwiseJudge<M>where
M: UnwindSafe,
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