feat(fb-38): score semantics — score_kind on search_hit.v1 + RRF formula docs #131
Reference in New Issue
Block a user
Delete Branch "feat/fb-38-score-semantics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
search_hit.v1에 optionalscore_kind: string필드 추가 —"rrf"(hybrid) /"bm25"(lexical) /"cosine"(vector). additive minor wire (no schema bump).search_with_tracemode=Lexical/Vector → underlying retriever 의 score_kind 그대로 보존.2/(k+rank)per-chunk,2/(k+1)ceiling, normalize 과정) + ranking-vs-confidence 안내. agent 용 trust threshold 는retrieval.lexical_score(BM25 raw) /retrieval.vector_score(cosine raw).Design:
docs/superpowers/specs/2026-05-10-p9-fb-38-score-semantics-design.mdPlan:
docs/superpowers/plans/2026-05-10-p9-fb-38-score-semantics.mdTest plan
cargo test --workspace --no-fail-fast -j 1greencargo clippy --workspace --all-targets -- -D warningscleankebab search Q --mode lexical --json | jq .hits[0].score_kindreturns"bm25"🤖 Generated with Claude Code
- search_hit.v1 에 optional score_kind 필드 (rrf | bm25 | cosine) - LexicalRetriever → Bm25, VectorRetriever → Cosine, HybridRetriever → Rrf - fb-37 search_with_trace 의 mode-dispatch hits 는 underlying retriever 의 score_kind 그대로 보존 - README + design §4 + SKILL 에 RRF 수식 전체 + "ranking signal, NOT confidence" 안내, agent 용 trust threshold 는 nested retrieval.{lexical,vector}_score - additive minor wire — schema bump 없음 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>