Compare commits

...
Author SHA1 Message Date
prof-dev 89d1cf0bde fix(storage): t_4c810e02 出端断链 — IPC 搜索解包补 useful/hnu/dedup 三列读侧接线
SearchWithTruncation 的解包结构此前缺 useful_count / human_not_useful_count /
dedup_downweight_count(Rust 侧 serde 全字段回传,Go 侧静默丢弃)⇒ 候选三计数
恒 0 ⇒ FeedbackScore≡0 ⇒ recall.go 的 feedbackBias 循环空转:
c954aa2 公式 + env 门全对,但线上排序对反馈完全无感(活证:标记 useful 前后
/recall 分数逐位不变 σ=0,t_4c810e02 ac2_ac7_live v2)。
与 2026-09-26 Source / 2026-10-08 Confidence 同族:「加了列不接 IPC = 静默
no-op」。修法=解包结构+输出映射各补三行(GA-P0-2 读侧接线同款),零公式改动。
2026-10-19 16:37:13 +08:00
+13
View File
@@ -255,6 +255,15 @@ func (rc *RustLanceDBClient) SearchWithTruncation(table string, vector []float32
// GA-P0-2 (t_c6d41ac6):拆分字段读侧接线
RecallSeenCount int64 `json:"recall_seen_count"`
RecallVerifiedCount int64 `json:"recall_verified_count"`
// t_4c810e02(反馈回路打通卡):反馈计数三列读侧接线。
// Rust Search 已回传(serde 全字段),此前本解包结构缺这三行 ⇒ 候选的
// UsefulCount/HumanNotUsefulCount/DedupDownweightCount 恒 0 ⇒
// FeedbackScore≡0 ⇒ recall.go 的 feedbackBias 循环整体空转(「出端断链」,
// 与 2026-09-26 Source / 2026-10-08 Confidence 同族:加了列、改了公式,
// 但 IPC 解包不接 ⇒ 静默 no-op,只有端到端活证能抓到)。
UsefulCount int64 `json:"useful_count"`
HumanNotUsefulCount int64 `json:"human_not_useful_count"`
DedupDownweightCount int64 `json:"dedup_downweight_count"`
VolatileFlag bool `json:"volatile_flag"`
Tier string `json:"tier"`
LastRecalledAt string `json:"last_recalled_at"`
@@ -341,6 +350,10 @@ func (rc *RustLanceDBClient) SearchWithTruncation(table string, vector []float32
// GA-P0-2 (t_c6d41ac6):拆分字段读侧接线
RecallSeenCount: int(r.RecallSeenCount),
RecallVerifiedCount: int(r.RecallVerifiedCount),
// t_4c810e02:反馈计数输出映射(缺 ⇒ FeedbackScore 读 0 ⇒ 反馈不进排序)
UsefulCount: int(r.UsefulCount),
HumanNotUsefulCount: int(r.HumanNotUsefulCount),
DedupDownweightCount: int(r.DedupDownweightCount),
Source: r.Source, // 2026-09-26:出处透出(缺此行 → recall.source 恒空)
Vector: r.Vector, // 去重判据依赖,勿删
// t_631ab13d:DB 原值直通 —— RecallResult 展示用它,排序用 QualityScore(融合值)