pub struct ExampleReport {
pub index: usize,
pub input: String,
pub reference: String,
pub prediction: String,
pub contexts: Vec<String>,
pub scores: HashMap<String, Score>,
}Expand description
Complete evaluation record for one example (includes the original text, for tracing low scores).
Fields§
§index: usizeExample index in the dataset (0-based)
input: StringOriginal model input (question/prompt) of the example
reference: StringGround-truth reference answer of the example
prediction: StringWhat the predictor actually produced
contexts: Vec<String>Retrieved contexts this example was scored against (B9; empty for non-RAG datasets). Old reports without this field deserialize to an empty vec.
scores: HashMap<String, Score>Scores each evaluator assigned to this example (failed or not-run evaluators are absent)
Trait Implementations§
Source§impl Clone for ExampleReport
impl Clone for ExampleReport
Source§fn clone(&self) -> ExampleReport
fn clone(&self) -> ExampleReport
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 ExampleReport
impl Debug for ExampleReport
Source§impl<'de> Deserialize<'de> for ExampleReport
impl<'de> Deserialize<'de> for ExampleReport
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 ExampleReport
impl RefUnwindSafe for ExampleReport
impl Send for ExampleReport
impl Sync for ExampleReport
impl Unpin for ExampleReport
impl UnsafeUnpin for ExampleReport
impl UnwindSafe for ExampleReport
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