pub struct HybridSearchBuilder { /* private fields */ }
Expand description
Builder for HybridSearch
.
Implementations§
Source§impl HybridSearchBuilder
impl HybridSearchBuilder
Sourcepub fn top_k<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn top_k<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Maximum number of documents to return
Sourcepub fn top_n<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn top_n<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
Maximum number of documents to return per query
Sourcepub fn dense_vector_field<VALUE: Into<EmbeddedField>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn dense_vector_field<VALUE: Into<EmbeddedField>>( &mut self, value: VALUE, ) -> &mut Self
The field to use for the dense vector
Sourcepub fn sparse_vector_field<VALUE: Into<EmbeddedField>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sparse_vector_field<VALUE: Into<EmbeddedField>>( &mut self, value: VALUE, ) -> &mut Self
The field to use for the sparse vector TODO: I.e. lancedb does not use sparse embeddings for hybrid search
Sourcepub fn build(&self) -> Result<HybridSearch, HybridSearchBuilderError>
pub fn build(&self) -> Result<HybridSearch, HybridSearchBuilderError>
Trait Implementations§
Source§impl Clone for HybridSearchBuilder
impl Clone for HybridSearchBuilder
Source§fn clone(&self) -> HybridSearchBuilder
fn clone(&self) -> HybridSearchBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for HybridSearchBuilder
impl RefUnwindSafe for HybridSearchBuilder
impl Send for HybridSearchBuilder
impl Sync for HybridSearchBuilder
impl Unpin for HybridSearchBuilder
impl UnwindSafe for HybridSearchBuilder
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> 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>
Converts
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>
Converts
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