pub struct QualityScore {
pub cosine: f32,
pub judge_verdict: String,
pub judge_model: String,
pub embedder_id: String,
pub sample_rate: f32,
}Expand description
Optional quality measurement attached to a Record when the
proxy ran a shadow comparison between the compressed and the
prose arm at sample rate.
Recorded ONCE at sample time – never re-derived from response text – so the audit ledger remains the single source of truth.
Fields§
§cosine: f32Cosine similarity in [0.0, 1.0] of compressed-arm vs
prose-arm response embeddings. Pin the embedder via
embedder_id so values stay comparable across releases.
judge_verdict: StringCategorical judge verdict: "yes", "partial", "no", or
"indeterminate". From the cheap comparator model.
judge_model: StringIdentifier of the model used for judge_verdict; pinned for
reproducibility (e.g. "claude-haiku-4.5").
embedder_id: StringIdentifier of the embedder used for cosine; pinned (e.g.
"sentence-transformers/all-MiniLM-L6-v2@v2.7.0").
sample_rate: f32Sample rate in [0.0, 1.0] this record was drawn at; lets
the aggregator weight per-record contributions when computing
fleet-level quality.
Trait Implementations§
Source§impl Clone for QualityScore
impl Clone for QualityScore
Source§fn clone(&self) -> QualityScore
fn clone(&self) -> QualityScore
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QualityScore
impl Debug for QualityScore
Source§impl<'de> Deserialize<'de> for QualityScore
impl<'de> Deserialize<'de> for QualityScore
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>,
Source§impl PartialEq for QualityScore
impl PartialEq for QualityScore
Source§impl Serialize for QualityScore
impl Serialize for QualityScore
impl StructuralPartialEq for QualityScore
Auto Trait Implementations§
impl Freeze for QualityScore
impl RefUnwindSafe for QualityScore
impl Send for QualityScore
impl Sync for QualityScore
impl Unpin for QualityScore
impl UnsafeUnpin for QualityScore
impl UnwindSafe for QualityScore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more