pub struct SqliteMemoryConfig {
pub enabled: bool,
pub path: String,
pub embedding_dim: usize,
pub wal_mode: bool,
}Expand description
SQLite-backed memory storage configuration (RFC-012).
When enabled, memories are stored in a single memory.db file with
FTS5 BM25 + sqlite-vec KNN search. Falls back to the existing JSON
- TF-IDF approach when disabled.
Fields§
§enabled: boolEnable SQLite-backed memory storage.
path: StringPath to the SQLite database file.
Empty string means default: ~/.oxios/workspace/memory.db
embedding_dim: usizeEmbedding vector dimension.
Controls the vec0 virtual table dimension.
Common values: 128 (fast), 256 (balanced), 768 (full Gemma).
wal_mode: boolEnable WAL mode for concurrent reads.
Trait Implementations§
Source§impl Clone for SqliteMemoryConfig
impl Clone for SqliteMemoryConfig
Source§fn clone(&self) -> SqliteMemoryConfig
fn clone(&self) -> SqliteMemoryConfig
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 moreSource§impl Debug for SqliteMemoryConfig
impl Debug for SqliteMemoryConfig
Source§impl Default for SqliteMemoryConfig
impl Default for SqliteMemoryConfig
Source§impl<'de> Deserialize<'de> for SqliteMemoryConfig
impl<'de> Deserialize<'de> for SqliteMemoryConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SqliteMemoryConfig
impl RefUnwindSafe for SqliteMemoryConfig
impl Send for SqliteMemoryConfig
impl Sync for SqliteMemoryConfig
impl Unpin for SqliteMemoryConfig
impl UnsafeUnpin for SqliteMemoryConfig
impl UnwindSafe for SqliteMemoryConfig
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