Skip to content

Commit 8ae7538

Browse files
authored
Updated features (#7)
* Updated Test Coverage * Fixed the test * Implement intent-based query adjustments and add tolerance to score weight normalization * Updated features * Updated the chunker * Fixed the error in the CI
1 parent 5902e43 commit 8ae7538

12 files changed

Lines changed: 1345 additions & 87 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ docs/
2828
.env
2929
*.mem
3030
venv/
31-
.venv/
31+
.venv/
32+
skills/

Cargo.lock

Lines changed: 145 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/cortexadb-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ arc-swap = "1.8.2"
2525
regex = "1.10"
2626
serde_json = "1.0"
2727
usearch = { version = "2.24.0", features = ["simsimd"] }
28+
log = "0.4"
29+
2830

2931
[dev-dependencies]
3032
proptest = "1.4"
3133
tempfile = "3.8"
3234
criterion = "0.5"
35+
serial_test = "3.0"
3336

3437
[[bench]]
3538
name = "storage_bench"

crates/cortexadb-core/src/bin/monkey_writer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3535

3636
let _ = store.insert_memory(entry)?;
3737

38-
if i % 100 == 0 {
39-
eprintln!("wrote {i}/{total}");
38+
if i % 10_000 == 0 {
39+
log::info!("wrote {i}/{total}");
4040
}
4141

4242
if sleep_ms > 0 {
4343
thread::sleep(Duration::from_millis(sleep_ms));
4444
}
4545
}
4646

47-
eprintln!("writer completed");
47+
log::info!("writer completed");
4848
Ok(())
4949
}

0 commit comments

Comments
 (0)