Repository navigation
fix(retrieve): 分布式 openGauss 回退到普通召回 - #4
Merged
heaoxiang-ai merged 1 commit intoNov 24, 2026
Conversation
默认衰减请求会进入分布式 openGauss 不支持的高级排序分支,导致自动召回丢失结果。按实际账号后端判断支持情况,无法应用衰减时直接执行原有查询。 Co-authored-by: qin-ctx <qinhaojie.exe@bytedance.com>
heaoxiang-ai
merged commit Nov 24, 2026
0af5ef5
into
heaoxiang-ai:codex/auto-recall-event-time-decay
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
#8093 给自动召回默认传入
events_time_decay_protection: "30d"。分布式 openGauss 无法执行事件衰减的高级排序。旧路径会把这个错误记入 Context API 的retrieval_errors,导致本可召回的事件缺失。用同一个有匹配事件的 Context 请求核对。修改前,加
30d后响应为 HTTP 200,事件数从 1 变成 0。修改后,加或省略30d时都返回同一条事件,HTTP 都是 200,retrieval_errors为空。Changes Made
Human Involvement
Related Issue
跟进 volcengine/OpenViking#8093。
Type of Change
Testing
向量范围、openGauss 适配器和层级检索共 107 项通过。
Context API 原有套件 14 项通过。
Context HTTP 对照验证通过,走真实分布式适配器分支,数据库查询使用替身。
Ruff lint、格式检查和
git diff --check通过。I have added tests that prove my fix is effective or that my feature works
New and existing unit tests pass locally with my changes
I have tested this on the following platforms:
Checklist
Screenshots (if applicable)
不适用。
Additional Notes
修复在服务端检索路径生效。目标分支为 volcengine#8093 的当前源分支。