pub enum EmbedderError {
NotImplemented,
LoadFailed(String),
EmbedFailed(String),
DimMismatch {
expected: usize,
got: usize,
},
}Expand description
Failure modes for an embedder.
Variants§
NotImplemented
The embedder is intentionally a no-op — no embeddings will be produced. Callers should fall back to a NULL embedding / lexical-only retrieval.
LoadFailed(String)
Model failed to load. v0.4.3+ — e.g. the fastembed backend can’t download the model.
EmbedFailed(String)
Inference failed (rare).
DimMismatch
Dimension mismatch between the embedder and a stored row. The retrieval path skips this row’s cosine contribution.
Trait Implementations§
Source§impl Clone for EmbedderError
impl Clone for EmbedderError
Source§fn clone(&self) -> EmbedderError
fn clone(&self) -> EmbedderError
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 EmbedderError
impl Debug for EmbedderError
Source§impl Display for EmbedderError
impl Display for EmbedderError
Source§impl Error for EmbedderError
impl Error for EmbedderError
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()
Auto Trait Implementations§
impl Freeze for EmbedderError
impl RefUnwindSafe for EmbedderError
impl Send for EmbedderError
impl Sync for EmbedderError
impl Unpin for EmbedderError
impl UnsafeUnpin for EmbedderError
impl UnwindSafe for EmbedderError
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