Skip to content

Commit a87b5fb

Browse files
(feat): MMR and temporal decay / bring back schema changes (#18786) thanks @rodrigouroz
Verified: - pnpm install --frozen-lockfile - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: rodrigouroz <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
1 parent 164d478 commit a87b5fb

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Docs: https://docs.openclaw.ai
2020
- Slack: pass `recipient_team_id` / `recipient_user_id` through Slack native streaming calls so `chat.startStream`/`appendStream`/`stopStream` work reliably across DMs and Slack Connect setups, and disable block streaming when native streaming is active. (#20988) Thanks @Dithilli. Earlier recipient-ID groundwork was contributed in #20377 by @AsserAl1012.
2121
- CLI/Config: add canonical `--strict-json` parsing for `config set` and keep `--json` as a legacy alias to reduce help/behavior drift. (#21332) thanks @adhitShet.
2222
- CLI: keep `openclaw -v` as a root-only version alias so subcommand `-v, --verbose` flags (for example ACP/hooks/skills) are no longer intercepted globally. (#21303) thanks @adhitShet.
23+
- Config/Memory: restore schema help/label metadata for hybrid `mmr` and `temporalDecay` settings so configuration surfaces show correct names and guidance. (#18786) Thanks @rodrigouroz.
2324

2425
- Discord/Gateway: handle close code 4014 (missing privileged gateway intents) without crashing the gateway. Thanks @thewilloftheshadow.
2526
- Security/Net: strip sensitive headers (`Authorization`, `Proxy-Authorization`, `Cookie`, `Cookie2`) on cross-origin redirects in `fetchWithSsrFGuard` to prevent credential forwarding across origin boundaries. (#20313) Thanks @afurm.

src/config/schema.help.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,14 @@ export const FIELD_HELP: Record<string, string> = {
215215
"Weight for BM25 text relevance when merging results (0-1).",
216216
"agents.defaults.memorySearch.query.hybrid.candidateMultiplier":
217217
"Multiplier for candidate pool size (default: 4).",
218+
"agents.defaults.memorySearch.query.hybrid.mmr.enabled":
219+
"Enable MMR re-ranking to reduce near-duplicate memory hits (default: false).",
220+
"agents.defaults.memorySearch.query.hybrid.mmr.lambda":
221+
"MMR relevance/diversity balance (0 = max diversity, 1 = max relevance, default: 0.7).",
222+
"agents.defaults.memorySearch.query.hybrid.temporalDecay.enabled":
223+
"Enable exponential recency decay for hybrid scoring (default: false).",
224+
"agents.defaults.memorySearch.query.hybrid.temporalDecay.halfLifeDays":
225+
"Half-life in days for temporal decay (default: 30).",
218226
"agents.defaults.memorySearch.cache.enabled":
219227
"Cache chunk embeddings in SQLite to speed up reindexing and frequent updates (default: true).",
220228
memory: "Memory backend configuration (global).",

src/config/schema.labels.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ export const FIELD_LABELS: Record<string, string> = {
166166
"agents.defaults.memorySearch.query.hybrid.textWeight": "Memory Search Text Weight",
167167
"agents.defaults.memorySearch.query.hybrid.candidateMultiplier":
168168
"Memory Search Hybrid Candidate Multiplier",
169+
"agents.defaults.memorySearch.query.hybrid.mmr.enabled": "Memory Search MMR Re-ranking",
170+
"agents.defaults.memorySearch.query.hybrid.mmr.lambda": "Memory Search MMR Lambda",
171+
"agents.defaults.memorySearch.query.hybrid.temporalDecay.enabled": "Memory Search Temporal Decay",
172+
"agents.defaults.memorySearch.query.hybrid.temporalDecay.halfLifeDays":
173+
"Memory Search Temporal Decay Half-life (Days)",
169174
"agents.defaults.memorySearch.cache.enabled": "Memory Search Embedding Cache",
170175
"agents.defaults.memorySearch.cache.maxEntries": "Memory Search Embedding Cache Max Entries",
171176
memory: "Memory",

0 commit comments

Comments
 (0)