pub struct GroupSpec {
pub field: String,
pub group_size: u32,
pub groups: u32,
pub overfetch: u32,
pub missing_as_own: bool,
}Expand description
Result grouping / field-collapse options for StateletClient::vector_search_grouped
(epic #1427). Collapse results to at most group_size hits per distinct
value of the payload field field, returning up to groups distinct group
keys, ordered by ascending distance.
Fields§
§field: StringPayload field to group by (empty ⇒ grouping off).
group_size: u32Max hits per group (0 ⇒ 1, one-best-per-group).
groups: u32Number of distinct group keys to return (0 ⇒ falls back to k).
overfetch: u32Candidate over-fetch multiplier (0 ⇒ default 4, capped server-side).
missing_as_own: boolWhen true, candidates missing field are returned as their own
singleton group (empty group_key) instead of being dropped (default).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroupSpec
impl RefUnwindSafe for GroupSpec
impl Send for GroupSpec
impl Sync for GroupSpec
impl Unpin for GroupSpec
impl UnsafeUnpin for GroupSpec
impl UnwindSafe for GroupSpec
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request