pub enum PipelineError {
LengthMismatch {
cat: usize,
emb: usize,
},
TooFewEmbeddings(usize),
Projection(ProjectionError),
UnknownCategory(String),
UnknownId(String),
AllTrialsFailed {
failures: Vec<(PipelineConfig, String)>,
},
}Expand description
Reasons a pipeline build or query can fail.
Variants§
LengthMismatch
categories and embeddings had different lengths — they must
match one-to-one.
TooFewEmbeddings(usize)
Fewer than 3 embeddings — not enough to fit a 3D projection.
Projection(ProjectionError)
Projection fit rejected the input. Wraps
ProjectionError — empty
corpus, dim-too-low, inconsistent dim, invalid sigma, etc.
UnknownCategory(String)
A category-keyed query referenced a name that doesn’t exist in
the pipeline. Previously these paths silently returned empty
results / None, which callers couldn’t distinguish from
“category exists but is disconnected on the graph”.
UnknownId(String)
A concept-path query referenced an id that doesn’t exist in the pipeline.
AllTrialsFailed
Every auto_tune trial failed a
downstream validator (e.g. every candidate config was rejected
by the pipeline builder). The attached failures list carries
the (config, error) pairs the tuner observed — callers should
inspect them to find the real cause; the outer error is just a
roll-up saying “none of the trials produced a scorable pipeline”.
Fields
failures: Vec<(PipelineConfig, String)>Trait Implementations§
Source§impl Clone for PipelineError
impl Clone for PipelineError
Source§fn clone(&self) -> PipelineError
fn clone(&self) -> PipelineError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PipelineError
impl Debug for PipelineError
Source§impl Display for PipelineError
impl Display for PipelineError
Source§impl Error for PipelineError
impl Error for PipelineError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ProjectionError> for PipelineError
impl From<ProjectionError> for PipelineError
Source§fn from(source: ProjectionError) -> Self
fn from(source: ProjectionError) -> Self
Auto Trait Implementations§
impl Freeze for PipelineError
impl RefUnwindSafe for PipelineError
impl Send for PipelineError
impl Sync for PipelineError
impl Unpin for PipelineError
impl UnsafeUnpin for PipelineError
impl UnwindSafe for PipelineError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more