diff --git a/go/internal/storage/recall.go b/go/internal/storage/recall.go index 34b5439..7cbeae0 100644 --- a/go/internal/storage/recall.go +++ b/go/internal/storage/recall.go @@ -1280,6 +1280,17 @@ func (p *RecallPipeline) recallUncached(ctx context.Context, query, namespace st if idx >= 0 && idx < len(candidates) { f := specificityFactor(candidates[idx].Content, &candidates[idx]) if f != 1.0 { + // ⑦ 逐条验公式(2026-11-24 16:4x 牧尘判决:关 gate 改道 debug 字段) + // + // 问题:整数锚点下可达因子集 = {1.0,1.1,1.2,1.3,1.4}, + // 但实测比 1.4377 / 1.0714 均不可达 ⇒ 存在第三解释: + // ① base 非同源(debug 的 top_score 不是这里的 pre) + // ② 存在第二乘子 + // 这两个字段就是判别器:pre 是应用前的真实分数,anchors 是因子来源。 + // 行为不变(只多打日志),持续采样,卡三不污染。 + pre := reranked[i].Score + log.Printf("[recall][specificity] q=%q id=%s anchors=%d pre=%.6f factor=%.4f post=%.6f pos=%d", + query, candidates[idx].ID, specificityAnchors(candidates[idx].Content), pre, f, pre*f, i) reranked[i].Score *= f if f < 1.0 { demoted++