pub fn decode_turbovec(
ev: &EncodedVector,
bits: u8,
) -> Result<Vec<f32>, EncodingError>Expand description
Decode a turbovec-encoded blob back to Vec<f32>.
Round-trips losslessly because the row-level payload holds
the source f32 bytes; quantisation loss is a property of
the search-time scoring path, not of the row.
ยงErrors
EncodingError::UnsupportedBitWidth for bits outside
{2, 3, 4}; EncodingError::CodecMismatch when the
EncodedVector was produced under a different bit width;
EncodingError::Malformed when the payload size does not
match the recorded dimension.