pub struct LlmJudgeSpec {Show 13 fields
pub judge: JudgeKind,
pub judges: Vec<JudgeModel>,
pub aggregation: JudgeAggregation,
pub min_agreement: f64,
pub prompt_digest: String,
pub rubric: Option<Rubric>,
pub pass_threshold: Option<f64>,
pub samples: u32,
pub temperature: f64,
pub position_swap: bool,
pub reference_ref: Option<String>,
pub max_cost_micros: u64,
pub inputs: JudgeInputs,
}Expand description
Model-graded evaluator. Everything that can move a verdict is pinned and digested, so judge drift can never be mistaken for subject regression.
Fields§
§judge: JudgeKind§judges: Vec<JudgeModel>One entry is a single judge; more than one is a cross-model ensemble.
aggregation: JudgeAggregation§min_agreement: f64Inter-judge agreement below this marks the result low_agreement,
which drops it out of gating and into the human review queue.
prompt_digest: String§rubric: Option<Rubric>§pass_threshold: Option<f64>§samples: u32Self-consistency samples per judge, aggregated within the judge first.
temperature: f64§position_swap: boolPairwise only: run both orderings to cancel position bias.
reference_ref: Option<String>Reference only: pointer to the expected answer.
max_cost_micros: u64Budget for the whole ensemble, not per judge.
inputs: JudgeInputsTrait Implementations§
Source§impl Clone for LlmJudgeSpec
impl Clone for LlmJudgeSpec
Source§fn clone(&self) -> LlmJudgeSpec
fn clone(&self) -> LlmJudgeSpec
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 moreSource§impl Debug for LlmJudgeSpec
impl Debug for LlmJudgeSpec
Source§impl<'de> Deserialize<'de> for LlmJudgeSpec
impl<'de> Deserialize<'de> for LlmJudgeSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LlmJudgeSpec
impl PartialEq for LlmJudgeSpec
Source§impl Serialize for LlmJudgeSpec
impl Serialize for LlmJudgeSpec
impl StructuralPartialEq for LlmJudgeSpec
Auto Trait Implementations§
impl Freeze for LlmJudgeSpec
impl RefUnwindSafe for LlmJudgeSpec
impl Send for LlmJudgeSpec
impl Sync for LlmJudgeSpec
impl Unpin for LlmJudgeSpec
impl UnsafeUnpin for LlmJudgeSpec
impl UnwindSafe for LlmJudgeSpec
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