pub struct VectorQuery<'a> {
pub datasets: &'a [String],
pub vector: &'a [f32],
pub top_k: usize,
pub filter: Option<&'a MetadataFilter>,
}Expand description
Vector similarity query.
Fields§
§datasets: &'a [String]§vector: &'a [f32]§top_k: usize§filter: Option<&'a MetadataFilter>Trait Implementations§
Source§impl<'a> Clone for VectorQuery<'a>
impl<'a> Clone for VectorQuery<'a>
Auto Trait Implementations§
impl<'a> Forget for VectorQuery<'a>
impl<'a> Freeze for VectorQuery<'a>
impl<'a> Move for VectorQuery<'a>
impl<'a> RefUnwindSafe for VectorQuery<'a>
impl<'a> Send for VectorQuery<'a>
impl<'a> Sync for VectorQuery<'a>
impl<'a> Unpin for VectorQuery<'a>
impl<'a> UnsafeUnpin for VectorQuery<'a>
impl<'a> UnwindSafe for VectorQuery<'a>
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