1pub mod dataset;
10pub mod embedding;
11pub mod harness;
12pub mod report;
13pub mod search;
14
15#[cfg(feature = "quant")]
16pub mod quantization;
17
18pub use report::EvalReport;
19
20#[derive(Debug, thiserror::Error)]
21pub enum EvalError {
22 #[error("insufficient data: need at least {min}, got {got}")]
23 InsufficientData { min: usize, got: usize },
24
25 #[error("dimension mismatch: expected {expected}, got {got}")]
26 DimensionMismatch { expected: usize, got: usize },
27
28 #[error("quantization error: {0}")]
29 #[cfg(feature = "quant")]
30 Quant(#[from] mnemonist_quant::QuantError),
31
32 #[error("{0}")]
33 Other(String),
34}