pub struct EvalCase {
pub query: String,
pub relevant: Vec<String>,
pub family: String,
pub kind: CaseKind,
pub stale: Vec<String>,
}Expand description
One eval case: a query plus the set of corpus keys that are relevant to it.
Fields§
§query: String§relevant: Vec<String>Keys from EvalMemory::key that are relevant to this query.
Explicit empty = known negative. Missing is invalid fixture data.
family: StringOptional task/fact family. Shared IDs and normalized queries also group cases.
kind: CaseKindClassification of this case. Defaults to CaseKind::Recall.
Existing fixtures omit this field; #[serde(default)] keeps them valid.
stale: Vec<String>Keys of memories that should NOT appear in the top-k for this case (superseded / contradicted / losing memories). Empty by default — existing fixtures unchanged.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EvalCase
impl<'de> Deserialize<'de> for EvalCase
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 EvalCase
impl RefUnwindSafe for EvalCase
impl Send for EvalCase
impl Sync for EvalCase
impl Unpin for EvalCase
impl UnsafeUnpin for EvalCase
impl UnwindSafe for EvalCase
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