pub enum RetrievalError {
Show 13 variants
EmptyQueryVector,
DimensionLimitExceeded {
actual: usize,
maximum: usize,
},
DimensionMismatch {
expected: usize,
found: usize,
},
NonFiniteVector,
ZeroVector,
EmptyCandidateKey,
DuplicateCandidateKey,
ZeroLimit,
ResultLimitExceeded {
requested: usize,
maximum: usize,
},
InvalidMinimumScore,
InvalidMinimumMargin,
CandidateBudgetExceeded {
maximum: u64,
},
TimedOut,
}Expand description
Failure to validate or completely execute exact semantic retrieval.
Variants§
EmptyQueryVector
Query vectors must be nonempty.
DimensionLimitExceeded
Vector dimensions exceed policy.
DimensionMismatch
Candidate dimension differs from the query.
NonFiniteVector
Query or candidate contains NaN or infinity.
ZeroVector
Cosine similarity is undefined for a zero vector.
EmptyCandidateKey
Candidate keys must be nonempty.
DuplicateCandidateKey
Candidate keys must be globally unique.
ZeroLimit
At least one result must be requested.
ResultLimitExceeded
Requested result count exceeds policy.
InvalidMinimumScore
Minimum score is non-finite or outside cosine range.
InvalidMinimumMargin
Minimum margin is non-finite or outside cosine range width.
CandidateBudgetExceeded
Global candidate budget was exhausted.
TimedOut
Cooperative monotonic deadline expired.
Trait Implementations§
Source§impl Clone for RetrievalError
impl Clone for RetrievalError
Source§fn clone(&self) -> RetrievalError
fn clone(&self) -> RetrievalError
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 RetrievalError
impl Debug for RetrievalError
Source§impl Display for RetrievalError
impl Display for RetrievalError
Source§impl Error for RetrievalError
impl Error for RetrievalError
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 PartialEq for RetrievalError
impl PartialEq for RetrievalError
impl StructuralPartialEq for RetrievalError
Auto Trait Implementations§
impl Freeze for RetrievalError
impl RefUnwindSafe for RetrievalError
impl Send for RetrievalError
impl Sync for RetrievalError
impl Unpin for RetrievalError
impl UnsafeUnpin for RetrievalError
impl UnwindSafe for RetrievalError
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