Remove Embed::process_embeddings and have it be an inherent function of the type that uses it

This commit is contained in:
Louis Dureuil 2025-07-03 10:02:16 +02:00
parent 549dc985b8
commit a06cb1bfd6
No known key found for this signature in database
3 changed files with 4 additions and 15 deletions

View file

@ -30,8 +30,6 @@ pub trait OnEmbed<'doc> {
unused_vectors_distribution: &Self::ErrorMetadata,
metadata: &[Metadata<'doc>],
) -> crate::Error;
fn process_embeddings(&mut self, metadata: Metadata<'doc>, embeddings: Vec<Embedding>);
}
pub struct EmbedSession<'doc, C, I> {