pub fn build_collection_codec(
quantization: &str,
vectors: &[Vec<f32>],
dim: usize,
m: usize,
ef_construction: usize,
seed: u64,
) -> Option<CollectionCodec>Expand description
Build a CollectionCodec from a quantization tag and training vectors.
Returns None for unsupported or unrecognised tags (e.g. “sq8”, “pq”,
“none”) — those variants use separate per-segment code paths.