pub struct LocalRetrieverContribution {
pub tablet_id: TabletId,
pub row_id: RowId,
pub retriever_id: String,
pub retriever_kind: Option<String>,
pub local_rank: u32,
pub raw_score: f64,
pub upper_bound_after: Option<f64>,
pub rls_visible: bool,
pub weight: f64,
}Expand description
One tablet-local hit from a single named retriever (post-RLS).
Multiple contributions for the same (row_id, retriever_id) may arrive
from different tablets; the coordinator keeps one contribution per named
retriever per global row before fusing.
Fields§
§tablet_id: TabletIdSource tablet.
row_id: RowIdRow identity (globally unique within the table).
retriever_id: StringNamed retriever identity (dense, sparse, minhash, …).
retriever_kind: Option<String>Optional retriever kind tag for protocol diagnostics.
local_rank: u32Local 1-based rank within this retriever on this tablet (after RLS).
raw_score: f64Raw local score (higher is better in the contribution protocol).
upper_bound_after: Option<f64>Upper bound on the score of any unseen local hit for this
retriever after local_rank (None when the tablet is exhausted for
this retriever).
rls_visible: boolWhether this row was visible after RLS (must be true when emitted).
weight: f64Retriever weight used by RRF (weight / (k + rank)). Defaults to 1.0
when omitted at the merge call site.
Implementations§
Trait Implementations§
Source§impl Clone for LocalRetrieverContribution
impl Clone for LocalRetrieverContribution
Source§fn clone(&self) -> LocalRetrieverContribution
fn clone(&self) -> LocalRetrieverContribution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocalRetrieverContribution
impl Debug for LocalRetrieverContribution
Source§impl<'de> Deserialize<'de> for LocalRetrieverContribution
impl<'de> Deserialize<'de> for LocalRetrieverContribution
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>,
impl StructuralPartialEq for LocalRetrieverContribution
Auto Trait Implementations§
impl Freeze for LocalRetrieverContribution
impl RefUnwindSafe for LocalRetrieverContribution
impl Send for LocalRetrieverContribution
impl Sync for LocalRetrieverContribution
impl Unpin for LocalRetrieverContribution
impl UnsafeUnpin for LocalRetrieverContribution
impl UnwindSafe for LocalRetrieverContribution
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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