Skip to main content

Module memory

Module memory 

Source
Expand description

Memory abstraction — MemoryProvider trait and entry types.

The MemoryProvider trait defines a simple three-operation interface for long-term memory: store, search (semantic), and forget. Implementations are backed by vector stores that generate embeddings on write and perform similarity search on read.

§Key types

TypeRole
MemoryProviderTrait: store, search, forget
MemoryEntryA single stored memory with relevance score and metadata
MemoryMetadataKey-value metadata attached to a memory (tags, TTL, context)

§Implemented by

VectorMemory in the flashmind-memory crate provides the primary implementation using SQLite + sqlite-vec + FTS5 hybrid search.

Structs§

MemoryEntry
A single stored memory with its relevance score and provenance.
MemoryMetadata
Arbitrary key-value metadata attached to a memory entry.

Traits§

MemoryProvider
Abstraction over long-term memory storage and retrieval.