pub enum EmbeddingError {
EmptyInput,
DimensionMismatch,
ZeroNorm,
InvalidInput(String),
DecompositionFailed,
}Expand description
Errors produced by nabled-embeddings retrieval compute.
Variants§
EmptyInput
Input matrix or vector is empty.
DimensionMismatch
Query and corpus feature dimensions are incompatible, or an output buffer is mis-sized.
ZeroNorm
A metric that requires non-zero norms encountered a zero-norm row.
InvalidInput(String)
Caller-provided argument is invalid (for example a non-positive component count).
DecompositionFailed
The underlying matrix decomposition failed to converge.
Trait Implementations§
Source§impl Clone for EmbeddingError
impl Clone for EmbeddingError
Source§fn clone(&self) -> EmbeddingError
fn clone(&self) -> EmbeddingError
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 EmbeddingError
impl Debug for EmbeddingError
Source§impl Display for EmbeddingError
impl Display for EmbeddingError
Source§impl Error for EmbeddingError
impl Error for EmbeddingError
1.30.0 · 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<MatrixError> for EmbeddingError
impl From<MatrixError> for EmbeddingError
Source§fn from(value: MatrixError) -> Self
fn from(value: MatrixError) -> Self
Converts to this type from the input type.
Source§impl From<PCAError> for EmbeddingError
impl From<PCAError> for EmbeddingError
Source§impl From<VectorError> for EmbeddingError
impl From<VectorError> for EmbeddingError
Source§fn from(value: VectorError) -> Self
fn from(value: VectorError) -> Self
Converts to this type from the input type.
Source§impl IntoNabledError for EmbeddingError
impl IntoNabledError for EmbeddingError
Source§fn into_nabled_error(self) -> NabledError
fn into_nabled_error(self) -> NabledError
Convert domain-specific error into shared taxonomy.
Source§impl PartialEq for EmbeddingError
impl PartialEq for EmbeddingError
Source§fn eq(&self, other: &EmbeddingError) -> bool
fn eq(&self, other: &EmbeddingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EmbeddingError
impl StructuralPartialEq for EmbeddingError
Auto Trait Implementations§
impl Freeze for EmbeddingError
impl RefUnwindSafe for EmbeddingError
impl Send for EmbeddingError
impl Sync for EmbeddingError
impl Unpin for EmbeddingError
impl UnsafeUnpin for EmbeddingError
impl UnwindSafe for EmbeddingError
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