pub struct EvalScoreModelGrader {
pub input: Vec<EvalItem>,
pub model: String,
pub name: String,
pub pass_threshold: Option<f32>,
pub range: Option<Vec<f32>>,
pub sampling_params: Option<Value>,
pub _type: String,
}
Fields§
§input: Vec<EvalItem>
The input text. This may include template strings.
model: String
The model to use for the evaluation.
name: String
The name of the grader.
pass_threshold: Option<f32>
The threshold for the score.
range: Option<Vec<f32>>
The range of the score. Defaults to [0, 1]
.
sampling_params: Option<Value>
The sampling parameters for the model.
_type: String
The object type, which is always score_model
.
Trait Implementations§
Source§impl Debug for EvalScoreModelGrader
impl Debug for EvalScoreModelGrader
Source§impl<'de> Deserialize<'de> for EvalScoreModelGrader
impl<'de> Deserialize<'de> for EvalScoreModelGrader
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 EvalScoreModelGrader
impl RefUnwindSafe for EvalScoreModelGrader
impl Send for EvalScoreModelGrader
impl Sync for EvalScoreModelGrader
impl Unpin for EvalScoreModelGrader
impl UnwindSafe for EvalScoreModelGrader
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