pub struct HybridQuery {
pub vector: Vec<f32>,
pub k: usize,
pub filter: Option<MetadataFilter>,
pub temporal: Option<TemporalOptions>,
pub min_score: Option<f32>,
pub ef_search: Option<usize>,
pub include_metadata: bool,
}Expand description
Hybrid search query
Fields§
§vector: Vec<f32>Query vector
k: usizeNumber of results to return
filter: Option<MetadataFilter>Metadata filter (optional)
temporal: Option<TemporalOptions>Temporal options (optional)
min_score: Option<f32>Minimum similarity score
ef_search: Option<usize>Override ef_search parameter
include_metadata: boolInclude metadata in results
Implementations§
Source§impl HybridQuery
impl HybridQuery
Sourcepub fn with_filter(self, filter: MetadataFilter) -> Self
pub fn with_filter(self, filter: MetadataFilter) -> Self
Add a metadata filter
Sourcepub fn with_temporal(self, temporal: TemporalOptions) -> Self
pub fn with_temporal(self, temporal: TemporalOptions) -> Self
Add temporal options
Sourcepub fn with_min_score(self, min_score: f32) -> Self
pub fn with_min_score(self, min_score: f32) -> Self
Set minimum score threshold
Sourcepub fn with_metadata(self) -> Self
pub fn with_metadata(self) -> Self
Include metadata in results
Sourcepub fn with_ef_search(self, ef_search: usize) -> Self
pub fn with_ef_search(self, ef_search: usize) -> Self
Override ef_search parameter
Trait Implementations§
Source§impl Clone for HybridQuery
impl Clone for HybridQuery
Source§fn clone(&self) -> HybridQuery
fn clone(&self) -> HybridQuery
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 moreAuto Trait Implementations§
impl Freeze for HybridQuery
impl RefUnwindSafe for HybridQuery
impl Send for HybridQuery
impl Sync for HybridQuery
impl Unpin for HybridQuery
impl UnwindSafe for HybridQuery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.