pub struct Hit {
pub id: String,
pub name: String,
pub cosine: f32,
pub context: f32,
pub file: f32,
pub project: f32,
pub keyword: f32,
pub phrase: f32,
pub score: f32,
}Fields§
§id: String§name: String§cosine: f32Cosine of the current prompt against the skill — kept pure (never folded with the context blend) so confidence/agreement gates can still read the prompt’s own signal.
context: f32Boost from conversational context (see rank_all_ctx). Zero when the
context feature is off, the prompt is confident, or the skill is no more
context-relevant than average. Kept separate from cosine for attribution.
file: f32Boost from a referenced file of this skill’s type (see
crate::context::file_ids). Zero unless a matching file was named in the
prompt or recent context. Separate for attribution — the highest-precision,
directly-attributable context signal.
project: f32Boost from the working directory’s project ecosystem (see
crate::context::project_terms / crate::context::skills_for_terms).
Zero unless the channel is on and the skill’s ecosystem matches; gated on
cosine >= min_similarity - PROJECT_GATE_SLACK so this ambient signal can
lift a near-floor ecosystem skill over the line but never rescue a
clearly-irrelevant one. Separate for attribution.
keyword: f32§phrase: f32Boost from matched trigger phrases (see phrase_score).
score: f32Implementations§
Source§impl Hit
impl Hit
Sourcepub fn stage1_score(&self) -> f32
pub fn stage1_score(&self) -> f32
The stage-1 hybrid score: the sum of every channel. The single source for
the score field, the reranker’s stage-1 agreement gate
(crate::rerank::passes), and ski why’s breakdown display — so the
channel set can never drift apart across the three (it previously did: two
call sites silently omitted project).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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