pub struct SemanticSearchOptions {
pub top_k: usize,
pub score_threshold: f32,
}Expand description
Options for semantic search.
Fields§
§top_k: usizeMaximum number of results.
score_threshold: f32Minimum cosine similarity score threshold.
Trait Implementations§
Source§impl Clone for SemanticSearchOptions
impl Clone for SemanticSearchOptions
Source§fn clone(&self) -> SemanticSearchOptions
fn clone(&self) -> SemanticSearchOptions
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 SemanticSearchOptions
impl Debug for SemanticSearchOptions
Auto Trait Implementations§
impl Freeze for SemanticSearchOptions
impl RefUnwindSafe for SemanticSearchOptions
impl Send for SemanticSearchOptions
impl Sync for SemanticSearchOptions
impl Unpin for SemanticSearchOptions
impl UnsafeUnpin for SemanticSearchOptions
impl UnwindSafe for SemanticSearchOptions
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