pub struct VectorQuery {
pub vector: Vec<f32>,
pub top_k: usize,
pub filter: Option<Value>,
pub min_score: Option<f64>,
}Expand description
Query for vector similarity search.
Fields§
§vector: Vec<f32>Query vector.
top_k: usizeMaximum number of results.
filter: Option<Value>Metadata filter (provider-specific).
min_score: Option<f64>Minimum similarity threshold (0.0-1.0).
Implementations§
Source§impl VectorQuery
impl VectorQuery
Trait Implementations§
Source§impl Clone for VectorQuery
impl Clone for VectorQuery
Source§fn clone(&self) -> VectorQuery
fn clone(&self) -> VectorQuery
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 VectorQuery
impl RefUnwindSafe for VectorQuery
impl Send for VectorQuery
impl Sync for VectorQuery
impl Unpin for VectorQuery
impl UnwindSafe for VectorQuery
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