Skip to main content

save_embeddings

Function save_embeddings 

Source
pub fn save_embeddings(
    path: &Path,
    embeddings: &[(String, Vec<f32>)],
) -> Result<()>
Expand description

Save symbol embeddings to a binary file. Format: [count:u32] then for each entry: [id_len:u32][id_bytes][dim:u32][f32 * dim]