pub struct LlmRerankConfig {
pub use_llm: bool,
pub llm_budget_ms: u64,
pub llm_model: String,
pub contradiction_enabled: bool,
pub contradiction_penalty: f64,
}Expand description
LLM reranking configuration
Fields§
§use_llm: bool§llm_budget_ms: u64§llm_model: String§contradiction_enabled: bool§contradiction_penalty: f64Trait Implementations§
Source§impl Clone for LlmRerankConfig
impl Clone for LlmRerankConfig
Source§fn clone(&self) -> LlmRerankConfig
fn clone(&self) -> LlmRerankConfig
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 LlmRerankConfig
impl Debug for LlmRerankConfig
Source§impl Default for LlmRerankConfig
impl Default for LlmRerankConfig
Source§impl<'de> Deserialize<'de> for LlmRerankConfig
impl<'de> Deserialize<'de> for LlmRerankConfig
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 LlmRerankConfig
impl RefUnwindSafe for LlmRerankConfig
impl Send for LlmRerankConfig
impl Sync for LlmRerankConfig
impl Unpin for LlmRerankConfig
impl UnwindSafe for LlmRerankConfig
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