pub struct RetrievalEvaluationCase {
pub id: String,
pub query: String,
pub relevant: BTreeSet<DocumentId>,
pub cutoff: usize,
}Expand description
One versionable retrieval-quality case.
Fields§
§id: StringStable case identity.
query: StringSearch query.
relevant: BTreeSet<DocumentId>Ground-truth relevant document identities.
cutoff: usizeRanking cutoff.
Implementations§
Source§impl RetrievalEvaluationCase
impl RetrievalEvaluationCase
Sourcepub fn new(
id: impl Into<String>,
query: impl Into<String>,
relevant: impl IntoIterator<Item = DocumentId>,
cutoff: usize,
) -> Result<Self, RetrievalEvaluationError>
pub fn new( id: impl Into<String>, query: impl Into<String>, relevant: impl IntoIterator<Item = DocumentId>, cutoff: usize, ) -> Result<Self, RetrievalEvaluationError>
Validates one retrieval evaluation case.
§Errors
Rejects blank identities or queries, empty relevance sets, and zero cutoffs.
Trait Implementations§
Source§impl Clone for RetrievalEvaluationCase
impl Clone for RetrievalEvaluationCase
Source§fn clone(&self) -> RetrievalEvaluationCase
fn clone(&self) -> RetrievalEvaluationCase
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 RetrievalEvaluationCase
impl Debug for RetrievalEvaluationCase
impl Eq for RetrievalEvaluationCase
Source§impl PartialEq for RetrievalEvaluationCase
impl PartialEq for RetrievalEvaluationCase
impl StructuralPartialEq for RetrievalEvaluationCase
Auto Trait Implementations§
impl Freeze for RetrievalEvaluationCase
impl RefUnwindSafe for RetrievalEvaluationCase
impl Send for RetrievalEvaluationCase
impl Sync for RetrievalEvaluationCase
impl Unpin for RetrievalEvaluationCase
impl UnsafeUnpin for RetrievalEvaluationCase
impl UnwindSafe for RetrievalEvaluationCase
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