pub struct EmbeddingStore { /* private fields */ }Expand description
Stub de EmbeddingStore para compilacion sin feature embeddings.
Implementations§
Source§impl EmbeddingStore
impl EmbeddingStore
Sourcepub fn new(conn: Arc<Mutex<Connection>>) -> Self
pub fn new(conn: Arc<Mutex<Connection>>) -> Self
Crea un nuevo EmbeddingStore.
Sourcepub fn save(
&self,
_memory_id: Uuid,
_embedding: &[f32],
_model_name: &str,
) -> Result<()>
pub fn save( &self, _memory_id: Uuid, _embedding: &[f32], _model_name: &str, ) -> Result<()>
Guarda embedding de una memoria (stub — retorna error).
Sourcepub fn load(&self, _memory_id: Uuid) -> Result<Option<Vec<f32>>>
pub fn load(&self, _memory_id: Uuid) -> Result<Option<Vec<f32>>>
Carga embedding de una memoria (stub — retorna None).
Sourcepub fn load_all_for_project(
&self,
_project: &str,
) -> Result<Vec<(Uuid, Vec<f32>)>>
pub fn load_all_for_project( &self, _project: &str, ) -> Result<Vec<(Uuid, Vec<f32>)>>
Carga todos los embeddings de un proyecto (stub — retorna vacio).
Sourcepub fn delete(&self, _memory_id: Uuid) -> Result<()>
pub fn delete(&self, _memory_id: Uuid) -> Result<()>
Elimina el embedding de una memoria (stub — retorna error).
Sourcepub fn find_unindexed(&self, _project: &str) -> Result<Vec<Uuid>>
pub fn find_unindexed(&self, _project: &str) -> Result<Vec<Uuid>>
Lista IDs de memorias sin embedding (stub — retorna vacio).
Sourcepub fn deserialize(bytes: &[u8]) -> Vec<f32>
pub fn deserialize(bytes: &[u8]) -> Vec<f32>
Deserializa bytes little-endian a un vector de f32.
Trait Implementations§
Source§impl Clone for EmbeddingStore
impl Clone for EmbeddingStore
Source§fn clone(&self) -> EmbeddingStore
fn clone(&self) -> EmbeddingStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddingStore
impl RefUnwindSafe for EmbeddingStore
impl Send for EmbeddingStore
impl Sync for EmbeddingStore
impl Unpin for EmbeddingStore
impl UnsafeUnpin for EmbeddingStore
impl UnwindSafe for EmbeddingStore
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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