Repository navigation
feat(retrieval): add event time-decay ranking - #5214
Merged
Merged
Conversation
Co-authored-by: TRAE CLI <traecli@bytedance.com>
cocolord
force-pushed
the
codex/event-time-decay
branch
from
September 20, 2026 08:02
07c0cbb to
df0aefa
Compare
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
cocolord
marked this pull request as ready for review
September 21, 2026 04:46
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com> # Conflicts: # tests/storage/test_volcengine_clients.py
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
1 task
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com> Co-authored-by: TRAE CLI <traecli@bytedance.com> # Conflicts: # openviking/server/mcp_endpoint.py
Collaborator
Author
STG validation for
|
qin-ctx
requested changes
Sep 23, 2026
qin-ctx
left a comment
Collaborator
There was a problem hiding this comment.
类型标签只需由记忆提取的新建和更新流程维护。请收窄当前实现,避免共用向量化流程在直接写入记忆文件时重新推断并覆盖类型。
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
…gnment Co-authored-by: TRAE CLI <traecli@bytedance.com> # Conflicts: # openviking/session/memory/memory_updater.py
…gnment Co-authored-by: TRAE CLI <traecli@bytedance.com> # Conflicts: # openviking/storage/viking_vector_index_backend.py # tests/storage/test_viking_vector_scope_filter.py
…gnment Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
qin-ctx
requested changes
Sep 28, 2026
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com> Co-authored-by: TRAE CLI <traecli@bytedance.com>
Co-authored-by: TRAE CLI <traecli@bytedance.com>
qin-ctx
reviewed
Sep 29, 2026
qin-ctx
approved these changes
Sep 29, 2026
8 of 14 tasks
10 of 11 tasks
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.
Description
Add request-level event time decay during vector recall for semantic find/search. Omitted/null protection keeps the original single-search path; "0" enables immediate decay and durations such as "7d" protect scores before decay. Event recall scores use
origin_score * time_score, with no hotness or parent-directory weighting.Human Involvement
Implementation
acfeb99b4, including the global retrieval and hotness removal changes in refactor(retrieval): 改为全局召回并统一候选精排 #5450 and refactor(retrieval): 移除热度加权及其配置 #5454.memory_type=events. Both branches retain its permissions, directories, context type and levels. Missing tags enter the other branch. Extraction writes type tags for new/updated memories; direct content refresh preserves existing metadata. No historical backfill or URI-based type inference is added.2 * limitresults from each branch, merges the already-decayed event scores with ordinary scores, and reranks at most2 * limitcombined candidates. Model scores determine final ranking and threshold filtering. There is no additional time decay after model rerank. Failure fallback keeps the already-decayed recall scores.limit=10, each branch returns at most 20 results; the local event engine considers at most 60 vector candidates internally, and at most 20 merged results reach the model.origin_scoreandtime_scoredescribe recall-stage vector scores and factors; finalscoremay be a model score. English/Chinese documentation explains these stages and budgets.Validation
da071d990: 189 local tests passed across scope/ACL, rerank, local C++ projection and decay, cloud/HTTP clients, score adapters, openGauss parameter pass-through and ordinary scoring, engine loading and ABI packaging. Ruff lint/format for the cleanup andgit diff --checkpassed.1e0f129e: built the repository Dockerfile for Linux amd64 with freshly compiled C++ extensions; 252 pytest executions passed (118 core, 122 compatibility, 6 SSE3 and 6 AVX2), with no failures or skips. Authenticated HTTP find/search with a real embedding service verified disabled/null behavior, protection periods, decay scores, tag isolation and invalid-parameter errors. The standard container entrypoint returned 200 for health and readiness. The temporary test Pod was removed.da071d990.Limits
test_forget_directory_without_recursive_failsandtest_write_append_missing_file_fails, also reproduced on unmodified main00490c93a. Those cases were not rerun for this cleanup.