pub enum Error {
DatasetParse {
line: usize,
source: Error,
},
Io(Error),
Json(Error),
Store(VectorStoreError),
Config(String),
BaselineMismatch(String),
}Expand description
Errors produced by rig-retrieval-evals.
Variants§
DatasetParse
Failed to parse a qrels / corpus / answers JSONL file.
Fields
Io(Error)
I/O error while reading or writing a dataset or report.
Json(Error)
JSON (de)serialization error outside dataset parsing (e.g. report writing or qrels round-trip).
Store(VectorStoreError)
The underlying rig::vector_store::VectorStoreIndex returned an
error during a retrieval run.
Config(String)
The configured top-k or sample count was invalid (e.g. zero).
BaselineMismatch(String)
A metric requested a comparison against a baseline whose schema does not match the current report (different judge fingerprint, different metric set, etc.).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<VectorStoreError> for Error
impl From<VectorStoreError> for Error
Source§fn from(source: VectorStoreError) -> Self
fn from(source: VectorStoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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