pub struct RankingOptions {
pub hybrid_search: Option<RankingOptionsHybridSearch>,
pub ranker: Option<RankingOptionsRanker>,
pub score_threshold: Option<f64>,
}Expand description
Ranking options for search.
Fields§
§hybrid_search: Option<RankingOptionsHybridSearch>Weights that control how reciprocal rank fusion balances semantic embedding
ranker: Option<RankingOptionsRanker>The ranker to use for the file search.
score_threshold: Option<f64>The score threshold for the file search, a number between 0 and 1.
Trait Implementations§
Source§impl Clone for RankingOptions
impl Clone for RankingOptions
Source§fn clone(&self) -> RankingOptions
fn clone(&self) -> RankingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RankingOptions
impl Debug for RankingOptions
Source§impl<'de> Deserialize<'de> for RankingOptions
impl<'de> Deserialize<'de> for RankingOptions
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 RankingOptions
impl RefUnwindSafe for RankingOptions
impl Send for RankingOptions
impl Sync for RankingOptions
impl Unpin for RankingOptions
impl UnsafeUnpin for RankingOptions
impl UnwindSafe for RankingOptions
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