You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 423d4bd
Browse filesBrowse the repository at this point in the historyBrowse files
-**`src/retry.rs`** - Retry utilities with exponential backoff (3 attempts, 100ms–2s)
49
53
50
54
### MCP Server (`src/mcp/`)
51
55
@@ -67,7 +71,8 @@ Sediment is a semantic memory system for AI agents, running as an MCP (Model Con
67
71
-**Two-database hybrid**: LanceDB for vectors, SQLite for graph relationships + mutable counters
68
72
-**Single central database** at `~/.sediment/data/` stores all projects; graph + access at `~/.sediment/access.db`
69
73
-**Project scoping** via UUID stored in `.sediment/config` per project
70
-
-**Similarity boosting**: Same-project items get 1.15x boost, different projects 0.95x penalty
74
+
-**Similarity boosting**: Same-project items unchanged, different projects get 0.875x penalty (12.5% spread)
75
+
-**Hybrid search**: Vector similarity combined with FTS/BM25 scoring. BM25 boost is additive (max 0.12, power-law gamma 2.0). FTS index rebuilt on each store
71
76
-**Conflict detection**: Items with >=0.85 similarity flagged on store and enqueued for consolidation
72
77
-**Fresh DB connection per tool call** with shared embedder for efficiency
73
78
-**Memory decay scoring**: Recall results re-ranked using freshness (hyperbolic decay, 0.5 at 30 days) and access frequency (log-scaled). Tracked in SQLite sidecar since LanceDB is append-oriented.
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,8 @@ All local, embedded, zero config:
160
160
161
161
-**Memory decay**: Results re-ranked by freshness (30-day half-life) and access frequency. Old memories rank lower but are never auto-deleted.
162
162
-**Trust-weighted scoring**: Validated and well-connected memories score higher.
163
-
-**Project scoping**: Automatic context isolation between projects. Same-project items get a similarity boost.
163
+
-**Hybrid search**: Vector similarity combined with FTS/BM25 scoring for better retrieval quality.
164
+
-**Project scoping**: Automatic context isolation between projects. Different-project items receive a similarity penalty.
164
165
-**Relationship graph**: Items linked via RELATED, SUPERSEDES, and CO_ACCESSED edges. Recall expands results with 1-hop graph neighbors and co-access suggestions.
165
166
-**Background consolidation**: Near-duplicates (≥0.95 similarity) auto-merged; similar items (0.85–0.95) linked.
166
167
-**Type-aware chunking**: Intelligent splitting for markdown, code, JSON, YAML, and plain text.
0 commit comments