pub enum EmbedderError {
Unavailable(String),
Failed(String),
}Expand description
Errors reported by a QueryEmbedder.
Both variants are treated as capability misses by the coordinator:
plan.was_degraded_at_plan_time is set and the vector branch is
skipped, but the rest of the search pipeline proceeds normally.
Variants§
The embedder is not available at all (e.g. the default-embedder feature flag is disabled, or the model weights failed to load).
Failed(String)
The embedder is present but failed to embed this particular query.
Trait Implementations§
Source§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