pub struct NoopVectorStore { /* private fields */ }Expand description
An in-memory VectorStore that ignores embedding vectors and performs
case-insensitive substring search on query_text.
This provides backward-compatible recall behaviour with no new
dependencies. The store is not persisted across process restarts —
for durability use SqliteVecStore or a cloud-backed store.
Implementations§
Trait Implementations§
Source§impl Default for NoopVectorStore
impl Default for NoopVectorStore
Source§impl VectorStore for NoopVectorStore
impl VectorStore for NoopVectorStore
Source§fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 MemoryEntry,
_vector: Vec<f32>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn upsert<'life0, 'life1, 'async_trait>(
&'life0 self,
entry: &'life1 MemoryEntry,
_vector: Vec<f32>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist a memory entry. If an entry with the same
id already exists
it should be overwritten.Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
_query_vec: Vec<f32>,
query_text: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
_query_vec: Vec<f32>,
query_text: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<MemoryEntry>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve up to
limit entries whose vector is closest to query_vec
(cosine similarity). If query_vec is empty, fall back to returning
recent entries in insertion order.Auto Trait Implementations§
impl !Freeze for NoopVectorStore
impl RefUnwindSafe for NoopVectorStore
impl Send for NoopVectorStore
impl Sync for NoopVectorStore
impl Unpin for NoopVectorStore
impl UnsafeUnpin for NoopVectorStore
impl UnwindSafe for NoopVectorStore
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<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