pub fn chunk_rows(
dim: usize,
dtype: EmbeddingDtype,
chunk_bytes: usize,
) -> Result<u64>Expand description
Returns how many vectors of length dim fit in chunk_bytes when stored
as dtype. Errors for a dimension of 0, or if one vector is wider than
chunk_bytes.