qdrant / quantization

Apache License 2.0
6 stars 4 forks source link

AsRef slice for encoding input #24

Closed IvanPleshkov closed 6 months ago

IvanPleshkov commented 6 months ago

Exchange arguments impl Iterator<Item = &'a [f32]> into impl Iterator<Item = impl AsRef<[f32]> + 'a>. It allows to use non-slice types for encoder. Like Vec<f32> or Cow<'a, [f32]>