pub struct LazyRelevanceScoringConfig {
pub enabled: bool,
pub scoring_model: String,
pub batch_size: usize,
pub temperature: f32,
pub max_tokens_per_score: usize,
}Expand description
Configuration for lazy relevance scoring of search results. Controls how search results are scored for relevance to the query.
Fields§
§enabled: boolWhether relevance scoring is enabled
scoring_model: StringName of the model to use for relevance scoring
batch_size: usizeNumber of items to score in a single batch
temperature: f32Temperature parameter for controlling randomness in scoring
max_tokens_per_score: usizeMaximum number of tokens to consider for each score calculation
Trait Implementations§
Source§impl Clone for LazyRelevanceScoringConfig
impl Clone for LazyRelevanceScoringConfig
Source§fn clone(&self) -> LazyRelevanceScoringConfig
fn clone(&self) -> LazyRelevanceScoringConfig
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 LazyRelevanceScoringConfig
impl Debug for LazyRelevanceScoringConfig
Source§impl Default for LazyRelevanceScoringConfig
impl Default for LazyRelevanceScoringConfig
Source§impl<'de> Deserialize<'de> for LazyRelevanceScoringConfig
impl<'de> Deserialize<'de> for LazyRelevanceScoringConfig
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 LazyRelevanceScoringConfig
impl RefUnwindSafe for LazyRelevanceScoringConfig
impl Send for LazyRelevanceScoringConfig
impl Sync for LazyRelevanceScoringConfig
impl Unpin for LazyRelevanceScoringConfig
impl UnsafeUnpin for LazyRelevanceScoringConfig
impl UnwindSafe for LazyRelevanceScoringConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more