pub struct QueryReliability {
pub query_id: String,
pub trials: usize,
pub successes: usize,
pub pass_rate: f64,
pub pass_at_k: f64,
pub pass_all_k: f64,
}Expand description
Reliability summary for one query across repeated trials of the same metric.
A trial counts as successful when its score is greater than or equal to
ReliabilityReport::threshold. The per-query pass@k estimate is the
probability that at least one of k sampled trials succeeds; pass^k is
the probability that all k sampled trials succeed.
Fields§
§query_id: StringGold-query identifier.
trials: usizeNumber of repeated trials observed for this query.
successes: usizeNumber of trials whose score met or exceeded the threshold.
pass_rate: f64successes / trials.
pass_at_k: f64Empirical pass@k estimate for this query.
pass_all_k: f64Empirical pass^k estimate for this query.
Trait Implementations§
Source§impl Clone for QueryReliability
impl Clone for QueryReliability
Source§fn clone(&self) -> QueryReliability
fn clone(&self) -> QueryReliability
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 QueryReliability
impl Debug for QueryReliability
Source§impl<'de> Deserialize<'de> for QueryReliability
impl<'de> Deserialize<'de> for QueryReliability
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
Auto Trait Implementations§
impl Freeze for QueryReliability
impl RefUnwindSafe for QueryReliability
impl Send for QueryReliability
impl Sync for QueryReliability
impl Unpin for QueryReliability
impl UnsafeUnpin for QueryReliability
impl UnwindSafe for QueryReliability
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