Skip to content

fix(memory): wire semantic ranking options from config into SemanticMemory#1678

Merged
bug-ops merged 1 commit intomainfrom
semantic-ranking-not-wired
Mar 13, 2026
Merged

fix(memory): wire semantic ranking options from config into SemanticMemory#1678
bug-ops merged 1 commit intomainfrom
semantic-ranking-not-wired

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 13, 2026

Summary

  • build_memory() in zeph-core never called .with_ranking_options() after constructing SemanticMemory
  • All four ranking config fields (temporal_decay_enabled, temporal_decay_half_life_days, mmr_enabled, mmr_lambda) were parsed from [memory.semantic] but silently ignored
  • Both temporal decay and MMR always ran with hardcoded defaults (disabled), regardless of user configuration

Fix

Added a single .with_ranking_options() call after the match block in build_memory(), covering both the SQLite and Qdrant construction paths.

Test plan

  • cargo +nightly fmt --check — pass
  • cargo clippy --workspace --features full -- -D warnings — pass (0 warnings)
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 5267 passed, 0 failed

Fixes #1668

@github-actions github-actions Bot added bug Something isn't working size/XS Extra small PR (1-10 lines) documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate and removed bug Something isn't working size/XS Extra small PR (1-10 lines) labels Mar 13, 2026
@bug-ops bug-ops enabled auto-merge (squash) March 13, 2026 19:40
…emory

build_memory() constructed SemanticMemory without calling with_ranking_options(),
causing temporal_decay_enabled, temporal_decay_half_life_days, mmr_enabled, and
mmr_lambda from [memory.semantic] to be silently ignored. Both features always
ran with hardcoded defaults (disabled) regardless of user configuration.

Closes #1668
@bug-ops bug-ops force-pushed the semantic-ranking-not-wired branch from bd7c079 to 2487fb8 Compare March 13, 2026 19:44
@github-actions github-actions Bot added bug Something isn't working size/XS Extra small PR (1-10 lines) labels Mar 13, 2026
@bug-ops bug-ops merged commit 82a5eaa into main Mar 13, 2026
15 checks passed
@bug-ops bug-ops deleted the semantic-ranking-not-wired branch March 13, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(memory): semantic ranking options (temporal decay, MMR) not wired from config

1 participant