pub enum RescoreError {
Show 14 variants
ZeroDimension,
QueryDimension {
expected: usize,
actual: usize,
},
RowDataLength {
dimension: usize,
actual: usize,
},
CoarseScoreCount {
expected: usize,
actual: usize,
},
CandidateRowCount {
expected: usize,
actual: usize,
},
CandidateRowOutOfRange {
position: usize,
row_index: usize,
row_count: usize,
},
ZeroK,
ZeroOversample,
ZeroCandidateLimit,
CandidateLimitExceeded {
requested: usize,
maximum: usize,
},
NonFiniteCoarseScore {
index: usize,
},
NonFiniteExactScore {
row_index: usize,
},
InsufficientCandidates {
k: usize,
candidates: usize,
},
ArithmeticOverflow,
}Expand description
Typed failure from the two-stage rescore helper.
Variants§
ZeroDimension
The declared dimension was zero.
QueryDimension
The query width differed from the declared row width.
RowDataLength
The flat row matrix was not an exact multiple of the dimension.
CoarseScoreCount
The coarse score count differed from the matrix row count.
CandidateRowCount
A retained graph pool supplied a different number of ids and scores.
CandidateRowOutOfRange
A retained graph-pool row id was outside the f32 matrix.
Fields
ZeroK
Exact top-k must request at least one hit.
ZeroOversample
Oversampling must retain at least k coarse candidates.
ZeroCandidateLimit
A per-segment candidate limit was zero.
CandidateLimitExceeded
The requested frontier or its boundary ties exceeded the explicit limit.
Fields
NonFiniteCoarseScore
A coarse score was NaN or infinite.
NonFiniteExactScore
Exact f32-row scoring produced NaN or infinity.
InsufficientCandidates
The supplied pool held fewer than k rows.
ArithmeticOverflow
A candidate or byte-count multiplication overflowed usize.
Trait Implementations§
Source§impl Clone for RescoreError
impl Clone for RescoreError
Source§impl Debug for RescoreError
impl Debug for RescoreError
Source§impl Display for RescoreError
impl Display for RescoreError
impl Eq for RescoreError
Source§impl Error for RescoreError
impl Error for RescoreError
1.30.0 · 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()