pub struct InMemoryPatternIndex { /* private fields */ }Expand description
Brute-force in-memory implementation of PatternIndex.
Uses a Vec<PatternVector> with linear-scan cosine similarity.
Adequate for small collections (<10K blocks); a real AgentDB
deployment would use HNSW for sub-linear search.
Implementations§
Trait Implementations§
Source§impl Default for InMemoryPatternIndex
impl Default for InMemoryPatternIndex
Source§impl PatternIndex for InMemoryPatternIndex
impl PatternIndex for InMemoryPatternIndex
Auto Trait Implementations§
impl Freeze for InMemoryPatternIndex
impl RefUnwindSafe for InMemoryPatternIndex
impl Send for InMemoryPatternIndex
impl Sync for InMemoryPatternIndex
impl Unpin for InMemoryPatternIndex
impl UnsafeUnpin for InMemoryPatternIndex
impl UnwindSafe for InMemoryPatternIndex
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