#[non_exhaustive]pub struct SummarizationConfig {
pub enable_accuracy_evaluation: bool,
pub accuracy_evaluation_version: String,
pub enable_completeness_evaluation: bool,
pub completeness_evaluation_version: String,
pub evaluator_version: Option<String>,
/* private fields */
}Available on crate feature
generator-evaluations only.Expand description
Evaluation configs for summarization generator.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_accuracy_evaluation: bool👎Deprecated
Optional. Enable accuracy evaluation.
accuracy_evaluation_version: String👎Deprecated
Optional. Version for summarization accuracy. This will determine the prompt and model used at backend.
enable_completeness_evaluation: bool👎Deprecated
Optional. Enable completeness evaluation.
completeness_evaluation_version: String👎Deprecated
Optional. Version for summarization completeness. This will determine the prompt and model used at backend.
evaluator_version: Option<String>Optional. Version for summarization evaluation.
Implementations§
Source§impl SummarizationConfig
impl SummarizationConfig
pub fn new() -> Self
Sourcepub fn set_enable_accuracy_evaluation<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_enable_accuracy_evaluation<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_accuracy_evaluation.
§Example
ⓘ
let x = SummarizationConfig::new().set_enable_accuracy_evaluation(true);Sourcepub fn set_accuracy_evaluation_version<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_accuracy_evaluation_version<T: Into<String>>(self, v: T) -> Self
Sets the value of accuracy_evaluation_version.
§Example
ⓘ
let x = SummarizationConfig::new().set_accuracy_evaluation_version("example");Sourcepub fn set_enable_completeness_evaluation<T: Into<bool>>(self, v: T) -> Self
👎Deprecated
pub fn set_enable_completeness_evaluation<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_completeness_evaluation.
§Example
ⓘ
let x = SummarizationConfig::new().set_enable_completeness_evaluation(true);Sourcepub fn set_completeness_evaluation_version<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_completeness_evaluation_version<T: Into<String>>(self, v: T) -> Self
Sets the value of completeness_evaluation_version.
§Example
ⓘ
let x = SummarizationConfig::new().set_completeness_evaluation_version("example");Sourcepub fn set_evaluator_version<T>(self, v: T) -> Self
pub fn set_evaluator_version<T>(self, v: T) -> Self
Sets the value of evaluator_version.
§Example
ⓘ
let x = SummarizationConfig::new().set_evaluator_version("example");Sourcepub fn set_or_clear_evaluator_version<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_evaluator_version<T>(self, v: Option<T>) -> Self
Sets or clears the value of evaluator_version.
§Example
ⓘ
let x = SummarizationConfig::new().set_or_clear_evaluator_version(Some("example"));
let x = SummarizationConfig::new().set_or_clear_evaluator_version(None::<String>);Trait Implementations§
Source§impl Clone for SummarizationConfig
impl Clone for SummarizationConfig
Source§fn clone(&self) -> SummarizationConfig
fn clone(&self) -> SummarizationConfig
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 SummarizationConfig
impl Debug for SummarizationConfig
Source§impl Default for SummarizationConfig
impl Default for SummarizationConfig
Source§fn default() -> SummarizationConfig
fn default() -> SummarizationConfig
Returns the “default value” for a type. Read more
Source§impl Message for SummarizationConfig
impl Message for SummarizationConfig
Source§impl PartialEq for SummarizationConfig
impl PartialEq for SummarizationConfig
impl StructuralPartialEq for SummarizationConfig
Auto Trait Implementations§
impl Freeze for SummarizationConfig
impl RefUnwindSafe for SummarizationConfig
impl Send for SummarizationConfig
impl Sync for SummarizationConfig
impl Unpin for SummarizationConfig
impl UnwindSafe for SummarizationConfig
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