pub trait Embedder {
// Required method
fn embed(
&mut self,
doc_id: DocId,
revision: Revision,
source: &[u8],
) -> Result<Vec<f32>, EmbedderError>;
}Expand description
Host-provided document embedding boundary used by epoch migration.
One call returns either one complete vector or one typed error. No partial output buffer crosses this seam, so a migration caller can stage the vector before making any manifest-visible change.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".