pub struct TriModalQuery {
pub anchor_node: String,
pub embedding: Vec<f32>,
pub text_query: String,
pub collection: String,
pub graph_depth: usize,
pub top_k: usize,
pub alpha: f32,
pub beta: f32,
pub gamma: f32,
pub filter: Option<Value>,
}Expand description
Parameters for a tri-modal graph + vector + FTS query.
Fields§
§anchor_node: StringThe memory-graph node to start traversal from.
embedding: Vec<f32>Query embedding to rank against the vector collection.
text_query: StringText query for full-text search.
collection: StringName of the vector collection to search.
graph_depth: usizeMaximum graph traversal depth from anchor_node.
top_k: usizeMaximum number of results to return after blending.
alpha: f32Weight for vector similarity (must satisfy alpha + beta + gamma ≈ 1.0).
beta: f32Weight for graph proximity.
gamma: f32Weight for FTS BM25 score.
filter: Option<Value>Optional metadata filter applied before vector scoring.
Trait Implementations§
Source§impl Clone for TriModalQuery
impl Clone for TriModalQuery
Source§fn clone(&self) -> TriModalQuery
fn clone(&self) -> TriModalQuery
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 TriModalQuery
impl Debug for TriModalQuery
Source§impl<'de> Deserialize<'de> for TriModalQuery
impl<'de> Deserialize<'de> for TriModalQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TriModalQuery
impl RefUnwindSafe for TriModalQuery
impl Send for TriModalQuery
impl Sync for TriModalQuery
impl Unpin for TriModalQuery
impl UnsafeUnpin for TriModalQuery
impl UnwindSafe for TriModalQuery
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