pub struct RrfBuilder { /* private fields */ }Implementations§
Source§impl RrfBuilder
impl RrfBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new RrfBuilder with default values.
§Examples
use qdrant_client::qdrant::RrfBuilder;
let rrf = RrfBuilder::new().build();Sourcepub fn k(self, value: u32) -> Self
pub fn k(self, value: u32) -> Self
Set the K parameter for reciprocal rank fusion.
Controls how quickly the weights decrease as rank increases. Higher values make the weighting more uniform across ranks.
Default value is 60.
pub fn build(self) -> Rrf
Trait Implementations§
Source§impl Clone for RrfBuilder
impl Clone for RrfBuilder
Source§fn clone(&self) -> RrfBuilder
fn clone(&self) -> RrfBuilder
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 Default for RrfBuilder
impl Default for RrfBuilder
Source§impl From<RrfBuilder> for Rrf
impl From<RrfBuilder> for Rrf
Source§fn from(value: RrfBuilder) -> Self
fn from(value: RrfBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RrfBuilder
impl RefUnwindSafe for RrfBuilder
impl Send for RrfBuilder
impl Sync for RrfBuilder
impl Unpin for RrfBuilder
impl UnwindSafe for RrfBuilder
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
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