diff --git a/src/client.rs b/src/client.rs index e8b5556..f59edbc 100644 --- a/src/client.rs +++ b/src/client.rs @@ -251,6 +251,19 @@ impl From>> for Vectors { } } +impl From> for Vectors { + fn from(named_vectors: HashMap) -> Self { + Vectors { + vectors_options: Some(VectorsOptions::Vectors(NamedVectors { + vectors: named_vectors + .into_iter() + .map(|(k, v)| (k, v)) + .collect(), + })), + } + } +} + impl From>> for Vectors { fn from(named_vectors: HashMap>) -> Self { Vectors {