feat: Add recency boost support to SearchRequest#183
Open
raphaeldelio wants to merge 1 commit intoredis:mainfrom
Open
feat: Add recency boost support to SearchRequest#183raphaeldelio wants to merge 1 commit intoredis:mainfrom
raphaeldelio wants to merge 1 commit intoredis:mainfrom
Conversation
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
Adds recency boost support to the Java SDK's
SearchRequest, enabling control over memory decay in search results.Changes
SearchRequest: Added 8 recency boost fields with builder supportLongTermMemoryService: Include recency params in search payloadUsage
Note
Low Risk
Low risk: changes are additive optional fields and request-payload wiring for search, plus tests. Main impact is that search requests may now include new/previously-ignored parameters (
recency_*,server_side_recency,distance_threshold) when set, which can change search results.Overview
Adds recency-boost tuning controls to
SearchRequest(newrecency_*weights/half-lives plusserver_side_recency) with getters/setters, builder methods, andtoStringupdates.Updates
LongTermMemoryService.searchLongTermMemoriesto includedistance_thresholdand any provided recency parameters in the JSON payload, and adds unit + integration tests asserting these fields are serialized and accepted in search calls.Written by Cursor Bugbot for commit 8726e62. This will update automatically on new commits. Configure here.