pub struct HybridQueryBuilder<'a> { /* private fields */ }Expand description
Builder for hybrid queries
Implementations§
Source§impl<'a> HybridQueryBuilder<'a>
impl<'a> HybridQueryBuilder<'a>
Sourcepub fn with_vector(self, vector: Vec<f32>) -> Self
pub fn with_vector(self, vector: Vec<f32>) -> Self
Set the query vector for dense search
Sourcepub fn with_both(self, vector: Vec<f32>, text: impl Into<String>) -> Self
pub fn with_both(self, vector: Vec<f32>, text: impl Into<String>) -> Self
Set both vector and text
Sourcepub fn fusion(self, method: FusionMethod) -> Self
pub fn fusion(self, method: FusionMethod) -> Self
Set fusion method
Sourcepub fn filter_ids(self, ids: HashSet<NodeId>) -> Self
pub fn filter_ids(self, ids: HashSet<NodeId>) -> Self
Pre-filter by document IDs
Sourcepub fn filter_metadata(self, filter: MetadataFilter) -> Self
pub fn filter_metadata(self, filter: MetadataFilter) -> Self
Pre-filter by metadata
Sourcepub fn execute(self) -> Vec<HybridResult>
pub fn execute(self) -> Vec<HybridResult>
Execute the query
Auto Trait Implementations§
impl<'a> Freeze for HybridQueryBuilder<'a>
impl<'a> RefUnwindSafe for HybridQueryBuilder<'a>
impl<'a> Send for HybridQueryBuilder<'a>
impl<'a> Sync for HybridQueryBuilder<'a>
impl<'a> Unpin for HybridQueryBuilder<'a>
impl<'a> UnsafeUnpin for HybridQueryBuilder<'a>
impl<'a> UnwindSafe for HybridQueryBuilder<'a>
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> 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 moreSource§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