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() -> MultiModalQuery
pub fn with_vector(self, vector: Vec<f32>, k: usize) -> MultiModalQuery
pub fn with_graph_pattern(self, pattern: GraphQueryPattern) -> MultiModalQuery
pub fn with_metadata(self, filter: MetadataQuery) -> MultiModalQuery
pub fn with_weights( self, vector: f32, graph: f32, table: f32, ) -> MultiModalQuery
pub fn with_limit(self, limit: usize) -> MultiModalQuery
Trait Implementations§
Source§impl Clone for MultiModalQuery
impl Clone for MultiModalQuery
Source§fn clone(&self) -> MultiModalQuery
fn clone(&self) -> MultiModalQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiModalQuery
impl Debug for MultiModalQuery
Source§impl Default for MultiModalQuery
impl Default for MultiModalQuery
Source§fn default() -> MultiModalQuery
fn default() -> MultiModalQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultiModalQuery
impl RefUnwindSafe for MultiModalQuery
impl Send for MultiModalQuery
impl Sync for MultiModalQuery
impl Unpin for MultiModalQuery
impl UnsafeUnpin for MultiModalQuery
impl UnwindSafe for MultiModalQuery
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 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