pub struct EmbeddingEngine;Expand description
Stub de EmbeddingEngine para compilacion sin feature embeddings.
Implementations§
Source§impl EmbeddingEngine
impl EmbeddingEngine
Sourcepub async fn new(
_cache_dir: &Path,
_provider: &EmbeddingProvider,
_model: &str,
) -> Result<Self>
pub async fn new( _cache_dir: &Path, _provider: &EmbeddingProvider, _model: &str, ) -> Result<Self>
Inicializa el motor (stub — retorna error).
Sourcepub async fn embed(&self, _text: &str) -> Result<Vec<f32>>
pub async fn embed(&self, _text: &str) -> Result<Vec<f32>>
Genera el embedding de un texto (stub — retorna error).
Sourcepub async fn embed_batch(&self, _texts: &[String]) -> Result<Vec<Vec<f32>>>
pub async fn embed_batch(&self, _texts: &[String]) -> Result<Vec<Vec<f32>>>
Genera embeddings para un batch de textos (stub — retorna error).
Sourcepub fn memory_to_text(memory: &Memory) -> String
pub fn memory_to_text(memory: &Memory) -> String
Convierte una memoria a texto para embedding.
Sourcepub fn model_name(&self) -> &str
pub fn model_name(&self) -> &str
Retorna el nombre del modelo.
Sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
Retorna las dimensiones del embedding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddingEngine
impl RefUnwindSafe for EmbeddingEngine
impl Send for EmbeddingEngine
impl Sync for EmbeddingEngine
impl Unpin for EmbeddingEngine
impl UnsafeUnpin for EmbeddingEngine
impl UnwindSafe for EmbeddingEngine
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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