pub struct VectorQuery { /* private fields */ }Implementations§
Source§impl VectorQuery
impl VectorQuery
Sourcepub fn builder() -> VectorQueryBuilder
pub fn builder() -> VectorQueryBuilder
Start building a vector query.
Source§impl VectorQuery
impl VectorQuery
pub fn new() -> Result<Self>
pub fn topk(&self) -> i32
pub fn set_topk(&mut self, topk: i32) -> Result<()>
pub fn field_name(&self) -> Option<String>
pub fn set_field_name(&mut self, name: &str) -> Result<()>
pub fn set_query_vector_raw(&mut self, bytes: &[u8]) -> Result<()>
pub fn set_query_vector_fp32(&mut self, vec: &[f32]) -> Result<()>
pub fn set_query_vector_fp64(&mut self, vec: &[f64]) -> Result<()>
Sourcepub fn set_query_vector_fp16(&mut self, vec: &[f16]) -> Result<()>
Available on crate feature half only.
pub fn set_query_vector_fp16(&mut self, vec: &[f16]) -> Result<()>
half only.Set a half-precision query vector directly from &[half::f16].
Available with the half cargo feature.
pub fn filter(&self) -> Option<String>
pub fn set_filter(&mut self, filter: &str) -> Result<()>
pub fn include_vector(&self) -> bool
pub fn set_include_vector(&mut self, b: bool) -> Result<()>
pub fn include_doc_id(&self) -> bool
pub fn set_include_doc_id(&mut self, b: bool) -> Result<()>
pub fn set_output_fields(&mut self, fields: &[&str]) -> Result<()>
pub fn output_fields(&self) -> Result<Vec<String>>
pub fn set_hnsw_params(&mut self, params: HnswQueryParams) -> Result<()>
pub fn set_ivf_params(&mut self, params: IvfQueryParams) -> Result<()>
pub fn set_flat_params(&mut self, params: FlatQueryParams) -> Result<()>
Trait Implementations§
Source§impl Drop for VectorQuery
impl Drop for VectorQuery
impl Send for VectorQuery
Auto Trait Implementations§
impl Freeze for VectorQuery
impl RefUnwindSafe for VectorQuery
impl !Sync for VectorQuery
impl Unpin for VectorQuery
impl UnsafeUnpin 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