pub struct LatticeEmbedderProvider { /* private fields */ }Expand description
Adapter that wraps a lattice_embed::EmbeddingModel as an
EmbedderProvider.
All built-in models (MiniLM, paraphrase-multilingual, BGE variants, etc.)
are registered as LatticeEmbedderProvider instances during
KhiveRuntime construction. External callers do not need to use this type
unless they are constructing a custom registry from scratch.
Implementations§
Source§impl LatticeEmbedderProvider
impl LatticeEmbedderProvider
Sourcepub fn new(model: EmbeddingModel) -> Self
pub fn new(model: EmbeddingModel) -> Self
Create a new provider wrapping the given lattice model.
Trait Implementations§
Source§impl EmbedderProvider for LatticeEmbedderProvider
impl EmbedderProvider for LatticeEmbedderProvider
Source§fn dimensions(&self) -> usize
fn dimensions(&self) -> usize
Output vector dimension for this embedder. Read more
Source§fn build<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn EmbeddingService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn build<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RuntimeResult<Arc<dyn EmbeddingService>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Construct the underlying
EmbeddingService. Read moreAuto Trait Implementations§
impl Freeze for LatticeEmbedderProvider
impl RefUnwindSafe for LatticeEmbedderProvider
impl Send for LatticeEmbedderProvider
impl Sync for LatticeEmbedderProvider
impl Unpin for LatticeEmbedderProvider
impl UnsafeUnpin for LatticeEmbedderProvider
impl UnwindSafe for LatticeEmbedderProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more