Skip to main content

encode_raw

Function encode_raw 

Source
pub fn encode_raw(
    data: &[f32],
    dims: usize,
    vectors: usize,
) -> Result<Vec<u8>, CodecError>
Expand description

Encode f32 embeddings without transformation (raw + lz4).

Fallback for non-normalized embeddings where spherical transform doesn’t help.