pub struct InMemoryStore { /* private fields */ }Expand description
A thread-safe in-memory store. Loses everything on drop.
Implementations§
Source§impl InMemoryStore
impl InMemoryStore
Trait Implementations§
Source§impl Default for InMemoryStore
impl Default for InMemoryStore
Source§fn default() -> InMemoryStore
fn default() -> InMemoryStore
Returns the “default value” for a type. Read more
Source§impl MemoryStore for InMemoryStore
impl MemoryStore for InMemoryStore
Source§fn diary_append<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
project: &'life1 str,
content: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn diary_append<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
project: &'life1 str,
content: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Append a free-form note to the project diary.
Source§fn hybrid_search<'life0, 'life1, 'async_trait>(
&'life0 self,
_query: &'life1 str,
_k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, f32)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn hybrid_search<'life0, 'life1, 'async_trait>(
&'life0 self,
_query: &'life1 str,
_k: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, f32)>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Hybrid search across chunks (BM25 + vectors + RRF). Returns top-k chunk ids + scores.
Auto Trait Implementations§
impl !Freeze for InMemoryStore
impl RefUnwindSafe for InMemoryStore
impl Send for InMemoryStore
impl Sync for InMemoryStore
impl Unpin for InMemoryStore
impl UnsafeUnpin for InMemoryStore
impl UnwindSafe for InMemoryStore
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