Skip to content

Commit 268e0e0

Browse files
committed
feat(temporal): add date extraction, heuristic range parsing, and temporal scoring
Pure functions for temporal search: extract_note_date from frontmatter/filename, temporal_score for proximity decay, parse_date_range_heuristic for natural language temporal keywords, and parse_date_range_from_json for LLM orchestrator output. 33 unit tests covering all functions.
1 parent 2b80951 commit 268e0e0

4 files changed

Lines changed: 663 additions & 1 deletion

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ indicatif = "0.17"
2828
sqlite-vec = "0.1.8-alpha.1"
2929
zerocopy = { version = "0.7", features = ["derive"] }
3030
rayon = "1"
31-
time = "0.3"
31+
time = { version = "0.3", features = ["parsing", "formatting", "macros"] }
3232
strsim = "0.11"
3333
ignore = "0.4"
3434
rmcp = { version = "1.2", features = ["transport-io"] }

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub mod search;
1717
pub mod serve;
1818
pub mod store;
1919
pub mod tags;
20+
pub mod temporal;
2021
pub mod vecstore;
2122
pub mod watcher;
2223
pub mod writer;

0 commit comments

Comments
 (0)