pub struct VectorQuery {
pub collection: String,
pub embedding: Vec<f32>,
pub k: usize,
pub filters: Option<Vec<Filter>>,
pub min_score: Option<f32>,
}Expand description
Query builder for vector similarity search
Fields§
§collection: String§embedding: Vec<f32>§k: usize§filters: Option<Vec<Filter>>§min_score: Option<f32>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 moreSource§impl Debug for VectorQuery
impl Debug for VectorQuery
Auto 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