#[non_exhaustive]pub enum RetrievalEvaluationError {
EmptyCaseId,
EmptyRelevantDocuments,
ZeroCutoff,
CountOutOfRange,
Retrieval(RetrievalError),
}Expand description
Invalid dataset or failed retrieval evaluation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyCaseId
A case identity was blank.
EmptyRelevantDocuments
A case had no relevant documents.
ZeroCutoff
A case requested no ranked results.
CountOutOfRange
A collection size could not be represented by the metric format.
Retrieval(RetrievalError)
The retriever failed.
Trait Implementations§
Source§impl Debug for RetrievalEvaluationError
impl Debug for RetrievalEvaluationError
Source§impl Display for RetrievalEvaluationError
impl Display for RetrievalEvaluationError
Source§impl Error for RetrievalEvaluationError
impl Error for RetrievalEvaluationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<RetrievalError> for RetrievalEvaluationError
impl From<RetrievalError> for RetrievalEvaluationError
Source§fn from(source: RetrievalError) -> Self
fn from(source: RetrievalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetrievalEvaluationError
impl RefUnwindSafe for RetrievalEvaluationError
impl Send for RetrievalEvaluationError
impl Sync for RetrievalEvaluationError
impl Unpin for RetrievalEvaluationError
impl UnsafeUnpin for RetrievalEvaluationError
impl UnwindSafe for RetrievalEvaluationError
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