pub struct VectorQueryBuilder { /* private fields */ }Expand description
Builder for VectorQuery. Covers every knob on the query except
set_query_params (the untyped escape hatch); HNSW / IVF / Flat
parameters still go through their respective builders and
.params(...).
Implementations§
Source§impl VectorQueryBuilder
impl VectorQueryBuilder
pub fn field(self, name: impl Into<String>) -> Self
pub fn topk(self, k: i32) -> Self
pub fn filter(self, expr: impl Into<String>) -> Self
pub fn include_vector(self, include: bool) -> Self
pub fn include_doc_id(self, include: bool) -> Self
pub fn output_fields<I, S>(self, fields: I) -> Self
pub fn vector_fp32(self, vec: &[f32]) -> Self
pub fn vector_fp64(self, vec: &[f64]) -> Self
Sourcepub fn vector_raw(self, bytes: Vec<u8>) -> Self
pub fn vector_raw(self, bytes: Vec<u8>) -> Self
Raw vector bytes. Prefer Self::vector_fp32 / Self::vector_fp64
when possible.
pub fn hnsw_params(self, params: HnswQueryParams) -> Self
pub fn ivf_params(self, params: IvfQueryParams) -> Self
pub fn flat_params(self, params: FlatQueryParams) -> Self
pub fn build(self) -> Result<VectorQuery>
Auto Trait Implementations§
impl Freeze for VectorQueryBuilder
impl RefUnwindSafe for VectorQueryBuilder
impl Send for VectorQueryBuilder
impl Sync for VectorQueryBuilder
impl Unpin for VectorQueryBuilder
impl UnsafeUnpin for VectorQueryBuilder
impl UnwindSafe for VectorQueryBuilder
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