pub struct MultiModalQuery {
pub query_vector: Option<Vec<f32>>,
pub collections: Option<Vec<&'static str>>,
pub vector_k: Option<usize>,
pub graph_pattern: Option<GraphQueryPattern>,
pub metadata_filter: Option<MetadataQuery>,
pub vector_weight: Option<f32>,
pub graph_weight: Option<f32>,
pub table_weight: Option<f32>,
pub min_score: Option<f32>,
pub limit: Option<usize>,
}Expand description
Multi-modal query specification
Fields§
§query_vector: Option<Vec<f32>>Query vector for similarity search
collections: Option<Vec<&'static str>>Collections to search (None = all)
vector_k: Option<usize>Number of vectors to retrieve
graph_pattern: Option<GraphQueryPattern>Graph pattern to match
metadata_filter: Option<MetadataQuery>Metadata filter conditions
vector_weight: Option<f32>Weight for vector similarity (0.0-1.0)
graph_weight: Option<f32>Weight for graph pattern match (0.0-1.0)
table_weight: Option<f32>Weight for table/metadata filter (0.0-1.0)
min_score: Option<f32>Minimum combined score
limit: Option<usize>Maximum results to return
Implementations§
Source§impl MultiModalQuery
impl MultiModalQuery
pub fn new() -> Self
pub fn with_vector(self, vector: Vec<f32>, k: usize) -> Self
pub fn with_graph_pattern(self, pattern: GraphQueryPattern) -> Self
pub fn with_metadata(self, filter: MetadataQuery) -> Self
pub fn with_weights(self, vector: f32, graph: f32, table: f32) -> Self
pub fn with_limit(self, limit: usize) -> Self
Trait Implementations§
Source§impl Clone for MultiModalQuery
impl Clone for MultiModalQuery
Source§impl Debug for MultiModalQuery
impl Debug for MultiModalQuery
Auto Trait Implementations§
impl Forget for MultiModalQuery
impl Freeze for MultiModalQuerywhere
*const u8 is !null: Freeze,
PhantomData<f32>: Freeze,
PhantomData<&'static str>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<EdgePatternSpec>: Freeze,
PhantomData<(String, QueryCondition)>: Freeze,
impl Move for MultiModalQuery
impl RefUnwindSafe for MultiModalQuery
impl Send for MultiModalQuery
impl Sync for MultiModalQuery
impl Unpin for MultiModalQuery
impl UnsafeUnpin for MultiModalQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<f32>: UnsafeUnpin,
PhantomData<&'static str>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<EdgePatternSpec>: UnsafeUnpin,
PhantomData<(String, QueryCondition)>: UnsafeUnpin,
impl UnwindSafe for MultiModalQuerywhere
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
HashMap<String, QueryCondition>: UnwindSafe,
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> 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