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 Forget for LatticeEmbedderProvider
impl Freeze for LatticeEmbedderProvider
impl Move for LatticeEmbedderProvider
impl RefUnwindSafe for LatticeEmbedderProvider
impl Send for LatticeEmbedderProviderwhere
RawVecInner: Send,
impl Sync for LatticeEmbedderProviderwhere
RawVecInner: Sync,
impl Unpin for LatticeEmbedderProvider
impl UnsafeUnpin for LatticeEmbedderProvider
impl UnwindSafe for LatticeEmbedderProviderwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more