pub struct SearchParams {
pub top_k: usize,
pub threshold: f32,
pub search_method: SearchMethod,
pub include_metadata: bool,
pub document_filter: Option<String>,
pub metadata_filter: Option<HashMap<String, String>>,
}Expand description
Search parameters for vector search
Fields§
§top_k: usizeNumber of results to return
threshold: f32Similarity threshold (0.0 to 1.0)
search_method: SearchMethodSearch method to use
include_metadata: boolInclude metadata in results
document_filter: Option<String>Filter by document ID
metadata_filter: Option<HashMap<String, String>>Filter by metadata
Trait Implementations§
Source§impl Clone for SearchParams
impl Clone for SearchParams
Source§fn clone(&self) -> SearchParams
fn clone(&self) -> SearchParams
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 SearchParams
impl Debug for SearchParams
Source§impl Default for SearchParams
impl Default for SearchParams
Source§impl<'de> Deserialize<'de> for SearchParams
impl<'de> Deserialize<'de> for SearchParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SearchParams
impl RefUnwindSafe for SearchParams
impl Send for SearchParams
impl Sync for SearchParams
impl Unpin for SearchParams
impl UnwindSafe for SearchParams
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