Conversation
…lution (#2167, #2163) Hybrid seed selection (#2167): - Replace flat FTS5 match with hybrid score: fts * 0.6 + structural * 0.4 - Structural score combines normalized entity degree and edge-type diversity - Embedding fallback when FTS5 returns 0 results (WAL cross-session gap fix) - Community-aware seed capping with SA-INV-10 zero-out guard - New config: memory.synapse.seed_structural_weight, seed_community_cap A-MEM evolving link weights (#2163): - Migration 043: add retrieval_count, last_retrieved_at to graph_edges - evolved_weight() = confidence * (1 + 0.2 * ln(1 + count)) capped at 1.0 - Fire-and-forget retrieval tracking after SYNAPSE spread and BFS recall - Time-based multiplicative decay independent of graph eviction cycle - New config: memory.graph.link_weight_decay_lambda, link_weight_decay_interval_secs - Serde validation for link_weight_decay_lambda (must be in (0.0, 1.0]) - SQLite bind-limit chunking in entity_structural_scores and entity_community_ids Adds 16 unit tests; all 6525 tests pass.
…dentifiers in docs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
retrieval_count/last_retrieved_aton edges,evolved_weight()with 0.2 dampening, time-based multiplicative decay independent of eviction cycleChanges
migrations/043_graph_edge_retrieval.sql— additive schema:retrieval_count,last_retrieved_atongraph_edgesgraph/types.rs—evolved_weight(),ScoredEntity,retrieval_countinEdge/GraphFactgraph/store/mod.rs—find_entities_ranked(),entity_structural_scores(),entity_community_ids(),record_edge_retrieval(),decay_edge_retrieval_counts(); chunking at 163/490 for SQLite bind limitgraph/retrieval.rs— hybrid seed selection pipeline with SA-INV-10 guard, embedding fallbackgraph/activation.rs— spread usesevolved_weight()instead of raw confidencesemantic/graph.rs— time-based decay block in community task viagraph_metadatatimestampzeph-config/src/memory.rs— new fields:seed_structural_weight,seed_community_cap,link_weight_decay_lambda(with serde validation),link_weight_decay_interval_secsTest Plan
evolved_weightidentity/growth, retrieval tracking, decay, BFS weight factorcargo nextest run --workspace --features full --lib --bins)cargo +nightly fmt --checkcleanCloses #2167
Closes #2163