pub enum ShapeLabel {
LongTail,
Uniform,
Bimodal,
InsufficientSamples,
}Expand description
Categorical label summarising the shape of the per-response score
distribution. Promoted to a top-level agent hint on the retrieve
response envelope (see ScoreDistribution::shape).
Variants§
LongTail
Top score dominates the tail; max - median > 2 * iqr. Agents
can trust top-1 as a confident match.
Uniform
Scores are roughly equi-spaced; no single item dominates. Dense ranking is inconclusive; consider a rerank or graph expansion.
Bimodal
Two distinct score clusters separated by a gap larger than
iqr. Often a hybrid-lane artefact; look at per-lane scores.
InsufficientSamples
Fewer than K_MIN samples; shape cannot be distinguished from
noise. score_quantile still emits (pure rank, well-defined
for K >= 2), but distribution statistics are all zero.
Trait Implementations§
Source§impl Clone for ShapeLabel
impl Clone for ShapeLabel
Source§fn clone(&self) -> ShapeLabel
fn clone(&self) -> ShapeLabel
Returns a duplicate of the value. Read more
1.0.0 · 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 ShapeLabel
impl Debug for ShapeLabel
Source§impl<'de> Deserialize<'de> for ShapeLabel
impl<'de> Deserialize<'de> for ShapeLabel
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 ShapeLabel
impl PartialEq for ShapeLabel
Source§impl Serialize for ShapeLabel
impl Serialize for ShapeLabel
impl Copy for ShapeLabel
impl Eq for ShapeLabel
impl StructuralPartialEq for ShapeLabel
Auto Trait Implementations§
impl Freeze for ShapeLabel
impl RefUnwindSafe for ShapeLabel
impl Send for ShapeLabel
impl Sync for ShapeLabel
impl Unpin for ShapeLabel
impl UnsafeUnpin for ShapeLabel
impl UnwindSafe for ShapeLabel
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