Correctly construct the Embeddings struct

This commit is contained in:
Clément Renault 2024-11-28 13:53:25 +01:00
parent 58eab9a018
commit cc4bd54669
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
3 changed files with 21 additions and 8 deletions

View file

@ -475,7 +475,7 @@ impl<F> Embeddings<F> {
Ok(())
}
/// Append a flat vector of embeddings a the end of the embeddings.
/// Append a flat vector of embeddings at the end of the embeddings.
///
/// If `embeddings.len() % self.dimension != 0`, then the append operation fails.
pub fn append(&mut self, mut embeddings: Vec<F>) -> Result<(), Vec<F>> {