scone-core 0.2.0

The Scone memory engine: episodic + temporal-fact dual store with hybrid recall, offline-first
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(clippy::unwrap_used)]
use scone_core::Engine;
use scone_core::embed::HashEmbedder;

#[test]
fn open_creates_schema_and_is_idempotent() {
    let dir = tempfile::tempdir().unwrap();
    let e = Engine::open(dir.path(), Box::new(HashEmbedder::new(64))).unwrap();
    drop(e);
    let e = Engine::open(dir.path(), Box::new(HashEmbedder::new(64))).unwrap();
    assert_eq!(e.schema_version().unwrap(), 3);
    assert!(dir.path().join("scone.db").exists());
}